-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.h
More file actions
34 lines (25 loc) · 725 Bytes
/
user.h
File metadata and controls
34 lines (25 loc) · 725 Bytes
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
#ifndef USER_H
#define USER_H
#include <QObject>
#include <QStringList>
#include <QHash>
class User : public QObject
{
Q_OBJECT
public:
explicit User(QObject *parent = 0);
~User();
Q_INVOKABLE void setCompaniesFollowed(QString xml);
Q_INVOKABLE bool following(QString id);
Q_INVOKABLE void follow(QString id, QString name);
Q_INVOKABLE void stopFollow(QString id);
Q_INVOKABLE void setPeopleConnections(QString xml);
Q_INVOKABLE bool connected(QString id);
Q_INVOKABLE void addConnection(QString id, QString firstName);
Q_INVOKABLE void removeConnection(QString id);
void print();
private:
QHash<QString,QString>* companiesFollowed;
QHash<QString,QString>* peopleConnections;
};
#endif // USER_H