-
Notifications
You must be signed in to change notification settings - Fork 1
/
onlinestatus.h
58 lines (46 loc) · 1.11 KB
/
onlinestatus.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
#ifndef ONLINESTATUS_H
#define ONLINESTATUS_H
#include <QWidget>
#include "statusprocessor.h"
#include "filedownloader.h"
class StatusView;
class AccountManager;
class QLabel;
class QLineEdit;
class QPushButton;
class QProgressBar;
class QHBoxLayout;
class QVBoxLayout;
class QTimer;
class OnlineStatus : public QWidget
{
Q_OBJECT
private:
AccountManager *am;
FileDownloader *fd;
StatusView *sv;
QList<StatusInfo> infos;
QLabel *text;
QLabel *ovp;
QProgressBar *ovpb;
QHBoxLayout *progress;
QTimer *timer;
QLabel *refrate;
QLineEdit *refresh;
QPushButton *setbut;
QPushButton *refnow;
QLabel *persec;
QLabel *stat;
QLabel *status;
QHBoxLayout *downBox;
QVBoxLayout *layou;
friend QDataStream & operator<<(QDataStream &ds, const OnlineStatus &in);
friend QDataStream & operator>>(QDataStream &ds, OnlineStatus &in);
public:
explicit OnlineStatus(QWidget *parent = nullptr, AccountManager *am = nullptr, FileDownloader *fd = nullptr);
public slots:
void updateStatus();
private slots:
void changeTime();
};
#endif // ONLINESTATUS_H