1 #ifndef __frmActivityMgr__
2 #define __frmActivityMgr__
6 Subclass of frmActivityMgrADT, which is generated by wxFormBuilder.
9 #include "AppXestiaAddrBk.h"
10 #include "carddav/carddav.h"
14 #include "common/timers.h"
15 #include "common/etag.h"
17 //// end generated include
19 DECLARE_EVENT_TYPE(ACTMGR_RESUMEPROC, wxID_ANY)
20 DECLARE_EVENT_TYPE(ACTMGR_TOGGLECONN, wxID_ANY)
21 DECLARE_EVENT_TYPE(ACTMGR_STARTTIMER, wxID_ANY)
22 DECLARE_EVENT_TYPE(ACTMGR_STOPTIMER, wxID_ANY)
23 DECLARE_EVENT_TYPE(ACTMGR_STARTPROCESSTIMER, wxID_ANY)
24 DECLARE_EVENT_TYPE(ACTMGR_STOPPROCESSTIMER, wxID_ANY)
25 DECLARE_EVENT_TYPE(ACTMGR_UPDATESTATUSLABEL, wxID_ANY)
27 struct vCardDownloadDataFileClass{
28 unsigned int DataType = 0;
32 struct ActivityMgrLabelUpdate{
38 /** Implementing frmActivityMgrADT */
39 class frmActivityMgr : public frmActivityMgrADT
42 wxActTimer AnimationTimer;
43 wxActProcessTimer ActProcessTimer;
44 wxActListProcTimer ActListProcTimer;
46 int ActivityTaskID = 0;
47 int ActivityProgressBarTotal = 0;
48 int ActivityProgressBarDone = 0;
49 bool BlankBool = FALSE;
50 std::map<int,int> ActivityList;
51 std::map<int,int> ActivityListType;
52 std::map<int,long> ActivityListIndex;
53 std::map<int,wxString> ActivityListData;
54 std::map<int,wxString> ActivityListTaskDetail;
55 std::map<int,wxString> ActivityListAccount;
56 std::map<int,wxString> ActivityListFilename;
57 std::map<int,wxString> ActivityListFullFilename;
58 std::map<int,CardDAV> ActivityListConn;
59 std::map<int,wxString> ActivityListETag;
60 std::map<int,wxString> ActivityListETagOriginal;
61 std::map<int,wxDateTime> ActivityListFinDate;
62 std::map<int,wxArrayString> ActivityListLog;
63 bool WindowOpen = FALSE;
64 bool TasksActive = FALSE;
65 bool SleepMode = FALSE;
66 bool ProcessTasksData = FALSE;
67 //int ConflictResult = 0;
68 wxETagProcessTimer *ETagTmrPtr;
70 //frmMain *frmMainPtr;
72 // Handlers for frmActivityMgrADT events.
73 void CloseWindow( wxCommandEvent& event );
74 void CloseWindow( wxCloseEvent& event );
75 void StopTask( wxCommandEvent& event );
76 void StopAllTasks( wxCommandEvent& event );
77 void RetryTask( wxCommandEvent& event );
78 void StartTimer( wxCommandEvent& event );
79 void StopTimer( wxCommandEvent& event );
80 void StartProcessTimer( wxCommandEvent& event );
81 void StopProcessTimer( wxCommandEvent& event );
84 void ProcessTasksThread();
85 void ToggleConnectionStatus( wxCommandEvent& event );
86 void WriteServerCertificate(wxString AccountName, SSLCertCollection SSLCertInc);
87 void UpdateStatusLabel( wxCommandEvent& event );
90 frmActivityMgr( wxWindow* parent );
91 int AddTask(int TaskType, wxString TaskDetail, wxString TaskAccount,
92 wxString TaskURL, wxString TaskFilename, wxString TaskFullFilename,
96 void SetupPointers(wxETagProcessTimer *ETagTmrPtrInc, void *frmMainPtrInc);
97 void ResumeProcessing(wxCommandEvent &event);
98 void PauseAllTimers();
99 void ResumeAllTimers();
100 int GetTaskStatus(int intTaskID);
101 DECLARE_EVENT_TABLE()
103 //// end generated class members
107 #endif // __frmActivityMgr__