comunicwatcher/refreshservice.h

36 lines
541 B
C
Raw Normal View History

2020-06-13 08:19:49 +00:00
/**
* Refresh service
*
* @author Pierre Hubert
*/
#pragma once
#include "notificationshelper.h"
2020-06-13 12:39:34 +00:00
#include "trayicon.h"
2020-06-13 09:28:08 +00:00
#include "wsclient.h"
2020-06-13 08:19:49 +00:00
#include <QObject>
class RefreshService : public QObject
{
Q_OBJECT
public:
static void startService();
static void stopService();
private slots:
void connectedToWebSocket();
2020-06-13 08:19:49 +00:00
private:
RefreshService();
~RefreshService();
// Class members
static RefreshService *svc;
WsClient mWsClient;
NotificationsHelper mNotifsHelper;
2020-06-13 12:39:34 +00:00
TrayIcon mTrayIcon;
2020-06-13 08:19:49 +00:00
};