-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.h
49 lines (39 loc) · 841 Bytes
/
user.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
#ifndef USER_H
#define USER_H
#include <QString>
#include <QVariant>
namespace qtxmpp {
class User
{
public:
explicit User();
enum State{
Disconnected,
Connected,
Busy
};
QString getJid();
QString getNick();
QString getRessource();
QString getPassword();
QString getPassPrefix();
QString getStatus();
State getState();
void setJid(QString jid);
void setNick(QString nick);
void setRessource(QString ressource);
void setPassword(QString password);
void setPassPrefix(QString passPrefix);
void setStatus(QString status);
void setState(State state);
protected:
QString m_jid;
QString m_nick;
QString m_ressource;
QString m_password;
QString m_passPrefix;
QString m_status;
State m_state;
};
}
#endif // USER_H