AppCore
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
CardEventDownloader::DataClass Class Reference

Public Types

enum  DownloadMode { DownloadModeIncremental , DownloadModeFull }
 
enum  DownloadingResult {
  DownloadingResultUndefined = -1 , DownloadingResultOK = 0 , DownloadingResultCallingWebServiceFailed = 1 , DownloadingResultWebServiceReturnedError = 2 ,
  DownloadingResultMergingFailed = 3 , DownloadingResultCopyingFilesFailed = 4
}
 

Public Member Functions

void DevideEventFile (const string &pathFile, unsigned char *data)
 
void DevideEventFile (string eventFile)
 
unsigned char * GetFileData (string pathName, long &size)
 
void Merge (CardEventDownloader *owner, unsigned long &maxEventNumberInUpdate)
 
int32_t GetMaxEventNumber (CardEventDownloader *dataClassOwner)
 
long ReadMaxEventNumberFromEventFiles (CardEventDownloader *dataClassOwner)
 
bool UpdateMaxEventNumber (long maxEventNumber)
 
int32_t GetActualEventFileDateTime (CardEventDownloader *dataClassOwner)
 
void FillIncrementalWsInput (_ns1__ProcessEventFile2 &input, DownloadMode downloadMode, const string &fileName, CardEventDownloader *dataClassOwner)
 
void Sleep (unsigned long seconds)
 
void CopyFilesToSlave (EventDownloader::IFCEmcardSoapProxy &)
 
void CopyProcessedEventsFromSlaves ()
 
long SendReaderStatus (EventDownloader::IFCEmcardSoapProxy &web_service, int status, unsigned short readerOrder)
 
void CleanInput (_ns1__ProcessEventFile2 &input) const
 
char GetEventFileType (string pathName)
 
bool IsWifiActive ()
 
bool IsPPP0Active ()
 
bool CheckWifi (EUrlStruct &urlStruct)
 
bool CheckGPRS (EUrlStruct &urlStruct)
 
bool CopyEventFileToStdPath (string specificFile, string path)
 
void EvaluateAnswer (int wsRetVal, bool &removeProcessedEvents, bool &eventFilesDownloaded)
 
bool CleanEventFiles (CardEventDownloader *owner)
 
bool RunSystemCommand (const char *command)
 
void RollbackProcessedEventsUpload ()
 
QString GetProcessedEventsFileName ()
 
QString GetProcessedEventsToUploadFileName ()
 
void SetTimeouts (EventDownloader::IFCEmcardSoapProxy &web_service)
 
bool IsIncrementFileEmpty (string incrementPathFile, unsigned long &incrementFileDateTime)
 
void StartDownloadingProcess ()
 
void StopDownloadingProcess ()
 
unsigned long GetSecondsSinceLastDownload ()
 
DownloadingResult GetIncrementalEventFile (DownloadMode downloadMode, CardEventDownloader *dataClassOwner)
 
void CopyEventFileToSlave ()
 

Public Attributes

string mWS_URL
 
bool mDownloadingRunning
 
bool mDownloadingFinished
 
bool mMergingInProgress
 
bool mIsProcessingEvents
 
pthread_t mThread
 
unsigned long mCycleTime
 
unsigned long mLastDownloadTime
 
unsigned long mActualCardEventID
 
unsigned long mActualEventFileDateTime
 
QMutex mEventProcessingMutex
 
QMutex mDownloadingMutex
 
unsigned long mSerialNumber
 
unsigned long mDownloadingFaultInterval
 
EUrlList mUrlList
 
ESlaveList mSlaveList
 
long mEventDownloadingPeriod
 
long mCleanEventFilesPeriod
 

Member Enumeration Documentation

◆ DownloadingResult

Enumerator
DownloadingResultUndefined 
DownloadingResultOK 
DownloadingResultCallingWebServiceFailed 
DownloadingResultWebServiceReturnedError 
DownloadingResultMergingFailed 
DownloadingResultCopyingFilesFailed 

◆ DownloadMode

Enumerator
DownloadModeIncremental 
DownloadModeFull 

Member Function Documentation

◆ CheckGPRS()

bool CardEventDownloader::DataClass::CheckGPRS ( EUrlStruct urlStruct)
inline
Here is the call graph for this function:

◆ CheckWifi()

bool CardEventDownloader::DataClass::CheckWifi ( EUrlStruct urlStruct)
inline
Here is the call graph for this function:

◆ CleanEventFiles()

bool CardEventDownloader::DataClass::CleanEventFiles ( CardEventDownloader owner)
inline
Here is the call graph for this function:

◆ CleanInput()

void CardEventDownloader::DataClass::CleanInput ( _ns1__ProcessEventFile2 input) const
inline
Here is the caller graph for this function:

◆ CopyEventFileToSlave()

void CardEventDownloader::DataClass::CopyEventFileToSlave ( )
inline
Here is the caller graph for this function:

◆ CopyEventFileToStdPath()

bool CardEventDownloader::DataClass::CopyEventFileToStdPath ( string  specificFile,
string  path 
)
inline

odstranit stare udalostne subory

presunut novy spojeny udalostny subor

rozdelit

Here is the call graph for this function:

◆ CopyFilesToSlave()

void CardEventDownloader::DataClass::CopyFilesToSlave ( EventDownloader::IFCEmcardSoapProxy )
inline
Here is the caller graph for this function:

◆ CopyProcessedEventsFromSlaves()

void CardEventDownloader::DataClass::CopyProcessedEventsFromSlaves ( )
inline
Here is the caller graph for this function:

◆ DevideEventFile() [1/2]

void CardEventDownloader::DataClass::DevideEventFile ( const string &  pathFile,
unsigned char *  data 
)
inline

◆ DevideEventFile() [2/2]

void CardEventDownloader::DataClass::DevideEventFile ( string  eventFile)
inline

◆ EvaluateAnswer()

void CardEventDownloader::DataClass::EvaluateAnswer ( int  wsRetVal,
bool &  removeProcessedEvents,
bool &  eventFilesDownloaded 
)
inline
Here is the caller graph for this function:

◆ FillIncrementalWsInput()

void CardEventDownloader::DataClass::FillIncrementalWsInput ( _ns1__ProcessEventFile2 input,
DownloadMode  downloadMode,
const string &  fileName,
CardEventDownloader dataClassOwner 
)
inline

fill firm number

fill serial number

fill last event ID

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetActualEventFileDateTime()

int32_t CardEventDownloader::DataClass::GetActualEventFileDateTime ( CardEventDownloader dataClassOwner)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetEventFileType()

char CardEventDownloader::DataClass::GetEventFileType ( string  pathName)
inline
Here is the caller graph for this function:

◆ GetFileData()

unsigned char * CardEventDownloader::DataClass::GetFileData ( string  pathName,
long &  size 
)
inline
Here is the caller graph for this function:

◆ GetIncrementalEventFile()

DownloadingResult CardEventDownloader::DataClass::GetIncrementalEventFile ( DownloadMode  downloadMode,
CardEventDownloader dataClassOwner 
)
inline

prirastkovy subor

cely subor prevalit

Here is the call graph for this function:

◆ GetMaxEventNumber()

int32_t CardEventDownloader::DataClass::GetMaxEventNumber ( CardEventDownloader dataClassOwner)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetProcessedEventsFileName()

QString CardEventDownloader::DataClass::GetProcessedEventsFileName ( )
inline
Here is the caller graph for this function:

◆ GetProcessedEventsToUploadFileName()

QString CardEventDownloader::DataClass::GetProcessedEventsToUploadFileName ( )
inline
Here is the caller graph for this function:

◆ GetSecondsSinceLastDownload()

unsigned long CardEventDownloader::DataClass::GetSecondsSinceLastDownload ( )
inline

◆ IsIncrementFileEmpty()

bool CardEventDownloader::DataClass::IsIncrementFileEmpty ( string  incrementPathFile,
unsigned long &  incrementFileDateTime 
)
inline
Here is the caller graph for this function:

◆ IsPPP0Active()

bool CardEventDownloader::DataClass::IsPPP0Active ( )
inline
Here is the caller graph for this function:

◆ IsWifiActive()

bool CardEventDownloader::DataClass::IsWifiActive ( )
inline
Here is the caller graph for this function:

◆ Merge()

void CardEventDownloader::DataClass::Merge ( CardEventDownloader owner,
unsigned long &  maxEventNumberInUpdate 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadMaxEventNumberFromEventFiles()

long CardEventDownloader::DataClass::ReadMaxEventNumberFromEventFiles ( CardEventDownloader dataClassOwner)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RollbackProcessedEventsUpload()

void CardEventDownloader::DataClass::RollbackProcessedEventsUpload ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunSystemCommand()

bool CardEventDownloader::DataClass::RunSystemCommand ( const char *  command)
inline
Here is the caller graph for this function:

◆ SendReaderStatus()

long CardEventDownloader::DataClass::SendReaderStatus ( EventDownloader::IFCEmcardSoapProxy web_service,
int  status,
unsigned short  readerOrder 
)
inline
Here is the call graph for this function:

◆ SetTimeouts()

void CardEventDownloader::DataClass::SetTimeouts ( EventDownloader::IFCEmcardSoapProxy web_service)
inline
Here is the caller graph for this function:

◆ Sleep()

void CardEventDownloader::DataClass::Sleep ( unsigned long  seconds)
inline

◆ StartDownloadingProcess()

void CardEventDownloader::DataClass::StartDownloadingProcess ( )
inline
Here is the caller graph for this function:

◆ StopDownloadingProcess()

void CardEventDownloader::DataClass::StopDownloadingProcess ( )
inline
Here is the caller graph for this function:

◆ UpdateMaxEventNumber()

bool CardEventDownloader::DataClass::UpdateMaxEventNumber ( long  maxEventNumber)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ mActualCardEventID

unsigned long CardEventDownloader::DataClass::mActualCardEventID

◆ mActualEventFileDateTime

unsigned long CardEventDownloader::DataClass::mActualEventFileDateTime

◆ mCleanEventFilesPeriod

long CardEventDownloader::DataClass::mCleanEventFilesPeriod

◆ mCycleTime

unsigned long CardEventDownloader::DataClass::mCycleTime

◆ mDownloadingFaultInterval

unsigned long CardEventDownloader::DataClass::mDownloadingFaultInterval

◆ mDownloadingFinished

bool CardEventDownloader::DataClass::mDownloadingFinished

◆ mDownloadingMutex

QMutex CardEventDownloader::DataClass::mDownloadingMutex

◆ mDownloadingRunning

bool CardEventDownloader::DataClass::mDownloadingRunning

◆ mEventDownloadingPeriod

long CardEventDownloader::DataClass::mEventDownloadingPeriod

◆ mEventProcessingMutex

QMutex CardEventDownloader::DataClass::mEventProcessingMutex

◆ mIsProcessingEvents

bool CardEventDownloader::DataClass::mIsProcessingEvents

◆ mLastDownloadTime

unsigned long CardEventDownloader::DataClass::mLastDownloadTime

◆ mMergingInProgress

bool CardEventDownloader::DataClass::mMergingInProgress

◆ mSerialNumber

unsigned long CardEventDownloader::DataClass::mSerialNumber

◆ mSlaveList

ESlaveList CardEventDownloader::DataClass::mSlaveList

◆ mThread

pthread_t CardEventDownloader::DataClass::mThread

◆ mUrlList

EUrlList CardEventDownloader::DataClass::mUrlList

◆ mWS_URL

string CardEventDownloader::DataClass::mWS_URL

The documentation for this class was generated from the following file: