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:1089
bool IsIFCEnabled()
Definition CardEventDownloader.cpp:1171
void SetSerialNumber(unsigned long snr)
Definition CardEventDownloader.cpp:1151
CardEventDownloader()
Definition CardEventDownloader.cpp:1020
void StopDownloading()
Definition CardEventDownloader.cpp:1134
std::string GetPathToEvents()
Definition CardEventDownloader.cpp:1161
bool StartProcessingEvents()
Definition CardEventDownloader.cpp:1141
bool GetEventFileInfo(uint32_t &actualCardEventID, uint32_t &lastDownloadDateTime)
Definition CardEventDownloader.cpp:1186
std::string GetEventFileName()
Definition CardEventDownloader.cpp:1166
void ForceDownload()
Definition CardEventDownloader.cpp:1219
bool CheckEventFile()
Definition CardEventDownloader.cpp:1058
void StopProcessingEvents()
Definition CardEventDownloader.cpp:1146
~CardEventDownloader()
Definition CardEventDownloader.cpp:1048
std::string GetWS_URL()
Definition CardEventDownloader.cpp:1156