6 #include "../frmActivityMgr.h"
7 #include "../contacteditor/frmContactEditor.h"
14 struct frmContactEditor;
16 class wxActTimer : public wxTimer
19 int intActivityProgress = 0;
20 wxStaticBitmap *bmpActivity;
21 wxBitmap *SleepBitmapPtr;
24 wxActTimer():wxTimer()
28 void SetBitmap(wxStaticBitmap *ActMgr);
30 void StartAnimation();
32 void SetSleepBitmap(wxBitmap *SleepBitmap);
33 void SetupPointer(void *frmMainPtrIn);
37 class wxActProcessTimer : public wxTimer
41 int intActivityProgress = 0;
42 wxStaticBitmap *bmpActivity;
45 wxActProcessTimer():wxTimer()
49 void SetupPointers(void *ActMgr);
53 class wxActListProcTimer : public wxTimer
57 std::map<int,int> *ActListPtr;
58 std::map<int,long> *ActListUIPtr;
59 std::map<int,wxString> *ActListDetailPtr;
60 wxListCtrl *lstActivityPtr;
61 wxStaticText *lblDetailsPtr;
63 wxGauge *GauProgressPtr;
65 int intActivityTotal = 0;
66 int intActivityCompleted = 0;
67 wxActTimer *ActTimerPtr;
68 wxActProcessTimer *ActProcessTimerPtr;
69 std::map<int,wxDateTime> *ActListFinDTPtr;
70 bool ClearupProcessed = FALSE;
72 wxActListProcTimer():wxTimer()
76 void SetupPointers(std::map<int,int> *ActList, std::map<int,long> *ActListUI,
77 std::map<int,wxString> *ActListDetail, bool *TasksActive,
78 wxListCtrl *lstActivity, wxStaticText *lblDetails, wxGauge *GauProgress,
79 void *ActMgr, wxActTimer *ActTimer, wxActProcessTimer *ActProcessTimer,
80 std::map<int,wxDateTime> *ActListFinDT);
85 class wxETagProcessTimer : public wxTimer
88 int intActivityProgress = 0;
89 std::map<wxString,ETagDB> ETagDBList;
90 //std::map<int,ETagDB2> ETagDBListv3;
91 std::mutex ReloadLock;
93 wxETagProcessTimer():wxTimer()
98 ETagDB* GetPointer(wxString Filename);
99 void ReloadAccounts();
100 //void SetupPointers(frmActivityMgr *ActMgr);
104 class wxContactFileMonitorTimer : public wxTimer
107 bool FileStatus = FALSE;
109 frmContactEditor *frmCEPtr;
110 wxDateTime FileDateTime;
112 wxContactFileMonitorTimer():wxTimer()
116 void SetFilename(wxString FilenameInc);
117 void SetupPointers(frmContactEditor *frmCEPtrInc);
118 void UpdateTimestamp();
121 class wxContactWindowMonitor : public wxTimer
124 std::map<wxString, void*> *ContactWindowListPtr;
126 wxContactWindowMonitor():wxTimer()
130 void SetupPointers(std::map<wxString, void*> *ContactWindowListPtrInc);
133 class wxAccountSyncTimer : public wxTimer
137 wxString AccNameFull;
143 wxAccountSyncTimer():wxTimer()
147 void SetupData(wxString AccNameInc, wxString AccNameFull);
148 void SetupPointers(void *frmMainPtrInc,
149 void *frmACtMgrPtr, ETagDB *ETagDBPtrInc);
153 void SleepFor(unsigned long longSleepNanoSecs);