forked from shervinkh/sgu-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
competition.h
60 lines (48 loc) · 1.11 KB
/
competition.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
#ifndef COMPETITION_H
#define COMPETITION_H
#include <QWidget>
#include "competitionview.h"
class AccountManager;
class QLabel;
class QLineEdit;
class QPushButton;
class QCheckBox;
class QProgressBar;
class QHBoxLayout;
class QVBoxLayout;
class QTimer;
class Competition : public QWidget
{
Q_OBJECT
private:
AccountManager *am;
CompetitionView *cv;
QList<CompetitionInfo> infos;
QLabel *text;
QLabel *ovp;
QProgressBar *ovpb;
QLabel *pb;
QProgressBar *norpb;
QHBoxLayout *progress;
QTimer *timer;
QLabel *refrate;
QLineEdit *refresh;
QCheckBox *notiCheck;
QPushButton *setbut;
QPushButton *refnow;
QLabel *persec;
QLabel *stat;
QLabel *status;
QHBoxLayout *downBox;
QVBoxLayout *layou;
friend QDataStream & operator<<(QDataStream &ds, const Competition &in);
friend QDataStream & operator>>(QDataStream &ds, Competition &in);
public:
explicit Competition(QWidget *parent = nullptr, AccountManager *am = nullptr);
bool hasNoti();
public slots:
void updateStatus();
private slots:
void changeTime();
};
#endif // COMPETITION_H