add visa, start websocket implementation
[staging/HomeScreen.git] / HomeScreen / src2 / usermanagement.h
1 #ifndef USERMANAGEMENT_H
2 #define USERMANAGEMENT_H
3
4 #include <QObject>
5 #include "applicationmodel.h"
6 #include <QTimer>
7 #include <QtWebSockets/QWebSocket>
8 class UserManagement : public QObject
9 {
10     Q_OBJECT
11 public:
12     explicit UserManagement(QObject *home, QObject *shortcutArea, QObject *statusArea);
13
14 signals:
15
16 public slots:
17     void slot_timerTest();
18     void onConnected();
19     void onClosed();
20     void onTextMessageReceived(QString message);
21 private:
22     QObject *home;
23     QObject *shortcutArea;
24     QObject *statusArea;
25     ApplicationModel *appModel;
26     QTimer timerTest;
27     QString currentLanguage;
28     QWebSocket webSocket;
29     void connectWebsockets(const QUrl &url);
30 };
31
32 #endif // USERMANAGEMENT_H