Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Split frmContactEditor-Load.cpp into 24 files to make it more manageable.
[xestiaab/.git] / source / frmActivityMgr.h
1 #ifndef __frmActivityMgr__
2 #define __frmActivityMgr__
4 /**
5 @file
6 Subclass of frmActivityMgrADT, which is generated by wxFormBuilder.
7 */
9 #include "AppXestiaAddrBk.h"
10 #include "carddav/carddav.h"
11 #include <map>
12 #include <wx/timer.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;
29         wxString FileData;
30 };
32 struct ActivityMgrLabelUpdate{
33         long ItemIndex;
34         wxString ItemLabel;
35         wxString ItemDes;
36 };
38 /** Implementing frmActivityMgrADT */
39 class frmActivityMgr : public frmActivityMgrADT
40 {
41         private:
42                 wxActTimer AnimationTimer;
43                 wxActProcessTimer ActProcessTimer;
44                 wxActListProcTimer ActListProcTimer;
45                 wxBitmap SleepBitmap;
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;
69                 void *frmMainPtr;
70                 //frmMain *frmMainPtr;
71         protected:
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 );
82                 void FlushAllTasks();
83                 void RemoveTask();
84                 void ProcessTasksThread();
85                 void ToggleConnectionStatus( wxCommandEvent& event );
86                 void WriteServerCertificate(wxString AccountName, SSLCertCollection SSLCertInc);
87                 void UpdateStatusLabel( wxCommandEvent& event );
88         public:
89                 /** Constructor */
90                 frmActivityMgr( wxWindow* parent );
91                 int AddTask(int TaskType, wxString TaskDetail, wxString TaskAccount, 
92                         wxString TaskURL, wxString TaskFilename, wxString TaskFullFilename,
93                         wxString TaskData);
94                 void ProcessTasks();
95                 void OpenWindow();
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
104         
105 };
107 #endif // __frmActivityMgr__
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy