AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
11 class CardEventDownloader : public ESingleton<CardEventDownloader>
12 {
13 public:
18 
23 
28  bool CheckEventFile();
29 
34  bool StartDownloading();
35 
39  void StopDownloading();
40 
46  bool StartProcessingEvents();
47  void StopProcessingEvents();
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 
111 private:
112  class DataClass;
113  DataClass *d;
114 
115  static void *ThreadCycleDownloading( void *arg );
116 };
117 
118 #endif //CARD_EVENT_DOWNLOADER
void SetSerialNumber(unsigned long snr)
Definition: CardEventDownloader.cpp:1150
bool GetEventFileInfo(uint32_t &actualCardEventID, uint32_t &lastDownloadDateTime)
Definition: CardEventDownloader.cpp:1185
bool IsIFCEnabled()
Definition: CardEventDownloader.cpp:1170
bool StartProcessingEvents()
Definition: CardEventDownloader.cpp:1140
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
~CardEventDownloader()
Definition: CardEventDownloader.cpp:1047
void StopProcessingEvents()
Definition: CardEventDownloader.cpp:1145
bool CheckEventFile()
Definition: CardEventDownloader.cpp:1057
void ForceDownload()
Definition: CardEventDownloader.cpp:1218
void StopDownloading()
Definition: CardEventDownloader.cpp:1133
std::string GetWS_URL()
Definition: CardEventDownloader.cpp:1155
bool StartDownloading()
Definition: CardEventDownloader.cpp:1088
CardEventDownloader()
Definition: CardEventDownloader.cpp:1019
std::string GetEventFileName()
Definition: CardEventDownloader.cpp:1165
std::string GetPathToEvents()
Definition: CardEventDownloader.cpp:1160
Class is responsible for downloading of IFC event files.
Definition: CardEventDownloader.h:11
Definition: CardEventDownloader.cpp:44