-
Notifications
You must be signed in to change notification settings - Fork 0
/
statshandler.h
80 lines (69 loc) · 2.85 KB
/
statshandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef STATSHANDLER_H
#define STATSHANDLER_H
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QString>
#include <QList>
#include <QStringList>
#include <QTimer>
#include <csserver.h>
class statshandler : public csserver
{
public:
statshandler();
virtual ~statshandler();
QSqlDatabase db;
QSqlQuery query,query_g;
int lookup_rank, user_rank, pr_rank, rank, nrank, elo, wins, loses, sec, gamecounter, port;
bool game_started, capt2_ac,map_picked,players_picked,timed_out,pick_stage,capt1_rdy,capt2_rdy;
QString capt1,capt2,cmap,pturn,gamelist,tempM,stringA,channel, botname, gname, ip;
QStringList maps;
QList<QString> playerList,CT,T;
QTimer *ztimer;
protected:
bool vouch(QString name, QString auth,QString vauth, QString vname);
bool unvouchq(QString name,QString vauth, QString vname);
bool showStats(QString name, QString vname, QString vauth);
bool lookup(QString name, QString auth);
bool isUser(QString name);
bool promote(QString name, QString vauth, QString vname);
bool demote(QString name, QString vauth, QString vname);
bool kick(QString vauth, QString vname);
bool startGame(QString ss, QString vauth, QString vname);
bool checkAccept(QString vauth, QString vname);
bool MapVoting(QString vauth, QString vname, QString map);
bool checkDecline(QString vauth, QString vname);
bool checkPool(QString vauth, QString vname);
bool signIn(QString vauth, QString vname);
bool signOut(QString vauth, QString vname);
bool isReady(QString vauth, QString vname);
bool pickPlayer(QString name, QString vauth, QString vname);
bool AddGame(QString teamct, QString teamt, QString mapp);
bool checkCapt(QString vauth, QString vname);
bool forceClose(QString vauth, QString vname);
bool swapPlayer(int gamenumber, QString ply1, QString ply2, QString vauth, QString vname);
bool checkGame(int gamenumber);
bool gamesList(QString vauth, QString vname);
bool checkConnect(QString vauth, QString vname,int port, QString ip, QString rcon);
bool sendCommandCheck(QString vauth,QString vname,QString cmd1);
bool selectServer(QString vauth, QString vname, int idz);
bool checkSteamid(QString vauth, QString vname);
bool closeGame(QString vauth, QString vname, int gnumber);
bool showInfo(QString vauth, QString vname, int gnumber);
bool hasActive(QString vname);
void addLastGame(QString tempct, QString tempt);
void giveServ();
bool fAdd(QString name, QString vauth, QString vname);
bool fDel(QString name, QString vauth, QString vname);
int getServer();
QString checkStatus(int gnumber);
QString checkCT(int gnumber);
QString checkT(int gnumber);
QString findAuth(QString vauth, QString vname, QString name);
private:
int reg;
public slots:
void CloseCl();
};
#endif // STATSHANDLER_H