-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlgconnectionthread.h
48 lines (43 loc) · 1.06 KB
/
lgconnectionthread.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
#ifndef LGCONNECTIONTHREAD_H
#define LGCONNECTIONTHREAD_H
#include <QThread>
#include <iostream>
#include <QVector>
#include <QTimer>
#include <libgadu.h>
typedef QVector<int> intVector;
typedef QVector<QString> qstringVector;
class LGConnectionThread : public QThread
{
Q_OBJECT
public:
LGConnectionThread();
~LGConnectionThread();
void setContactList(QVector<int>);
void setLoginParams(int,const char*);
public slots:
void send(uin_t,std::string);
void changeStatus(int);
void addNotify(uin_t);
void removeNotify(uin_t);
signals:
void notify(intVector,intVector,qstringVector);
void statusChanged(uin_t,int,char*);
void changeStatusTrayIcon(int);
void newMessage(uin_t,QString);
private:
gg_session *sesja_gg;
gg_event *zdarzenie_gg;
gg_login_params p;
intVector availNumbers;
intVector availNumbersStatus;
qstringVector availNumbersDesc;
uin_t *contactList;
int numberOfContacts;
QTimer *pingTimer;
private slots:
void ping();
protected:
void run();
};
#endif // LGCONNECTIONTHREAD_H