AppCore
Loading...
Searching...
No Matches
CardEventDownloader.h
Go to the documentation of this file.
1#ifndef CARD_EVENT_DOWNLOADER
2#define CARD_EVENT_DOWNLOADER
3
4#include <string>
5#include <stdint.h>
6#include "core/common/ESingleton.h"
7
11class CardEventDownloader : public ESingleton<CardEventDownloader>
12{
13public:
18
23
28 bool CheckEventFile();
29
34 bool StartDownloading();
35
39 void StopDownloading();
40
48
56 void SetSerialNumber( unsigned long snr );
57
63 std::string GetWS_URL();
64
71 std::string GetPathToEvents();
72
79 std::string GetEventFileName();
80
89 bool IsIFCEnabled();
90
100 bool GetEventFileInfo( uint32_t &actualCardEventID, uint32_t &lastDownloadDateTime );
101
109 void ForceDownload();
110
111private:
112 class DataClass;
113 DataClass *d;
114
115 static void *ThreadCycleDownloading( void *arg );
116};
117
118#endif //CARD_EVENT_DOWNLOADER
Definition CardEventDownloader.cpp:45
Class is responsible for downloading of IFC event files.
Definition CardEventDownloader.h:12
bool StartDownloading()
Definition CardEventDownloader.cpp:1088
bool IsIFCEnabled()
Definition CardEventDownloader.cpp:1170
void SetSerialNumber(unsigned long snr)
Definition CardEventDownloader.cpp:1150
CardEventDownloader()
Definition CardEventDownloader.cpp:1019
void StopDownloading()
Definition CardEventDownloader.cpp:1133
std::string GetPathToEvents()
Definition CardEventDownloader.cpp:1160
bool StartProcessingEvents()
Definition CardEventDownloader.cpp:1140
bool GetEventFileInfo(uint32_t &actualCardEventID, uint32_t &lastDownloadDateTime)
Definition CardEventDownloader.cpp:1185
std::string GetEventFileName()
Definition CardEventDownloader.cpp:1165
void ForceDownload()
Definition CardEventDownloader.cpp:1218
bool CheckEventFile()
Definition CardEventDownloader.cpp:1057
void StopProcessingEvents()
Definition CardEventDownloader.cpp:1145
~CardEventDownloader()
Definition CardEventDownloader.cpp:1047
std::string GetWS_URL()
Definition CardEventDownloader.cpp:1155