// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
#include <map>
-#include <wx/timer.h>
-#include <wx/wx.h>
#include <mutex>
#include <atomic>
+#include <wx/timer.h>
+#include <wx/wx.h>
+#include <wx/mstream.h>
+#include <wx/file.h>
+#include <wx/ffile.h>
+#include <wx/filename.h>
+#include <wx/tokenzr.h>
+
#include "../actmgr/frmActivityMgr.h"
#include "../contacteditor/frmContactEditor.h"
+#include "../connobject/ConnectionObject.h"
+#include "../frmContact.h"
+#include "../frmMain.h"
+#include "../Bitmaps.h"
+#include "../enums.h"
+#include "../common/preferences.h"
+#include "../common/etag.h"
+#include "../common/dirs.h"
#include "etag.h"
#ifndef TIMERS_H
struct ETagDB;
struct frmContactEditor;
-struct CardDAV;
class wxActTimer : public wxTimer
{
{
private:
- std::map<int,int> *ActListPtr;
- std::map<int,long> *ActListUIPtr;
- std::map<int,wxString> *ActListDetailPtr;
- std::map<int,CardDAV*> *ActListConnPtr;
- wxListCtrl *lstActivityPtr;
- wxStaticText *lblDetailsPtr;
- bool *TasksActivePtr;
- wxGauge *GauProgressPtr;
- void *ActMgrPtr;
+ std::map<int,int> *ActListPtr = nullptr;
+ std::map<int,long> *ActListUIPtr = nullptr;
+ std::map<int,wxString> *ActListDetailPtr = nullptr;
+ wxListCtrl *lstActivityPtr = nullptr;
+ wxStaticText *lblDetailsPtr = nullptr;
+ bool *TasksActivePtr = nullptr;
+ wxGauge *GauProgressPtr = nullptr;
+ void *ActMgrPtr = nullptr;
int intActivityTotal = 0;
int intActivityCompleted = 0;
- wxActTimer *ActTimerPtr;
- wxActProcessTimer *ActProcessTimerPtr;
- std::map<int,wxDateTime> *ActListFinDTPtr;
+ wxActTimer *ActTimerPtr = nullptr;
+ wxActProcessTimer *ActProcessTimerPtr = nullptr;
+ std::map<int,wxDateTime> *ActListFinDTPtr = nullptr;
+ std::map<int,ConnectionObject*> *ActListConnObjectsPtr = nullptr;
bool ClearupProcessed = FALSE;
public:
wxActListProcTimer():wxTimer()
std::map<int,wxString> *ActListDetail, bool *TasksActive,
wxListCtrl *lstActivity, wxStaticText *lblDetails, wxGauge *GauProgress,
void *ActMgr, wxActTimer *ActTimer, wxActProcessTimer *ActProcessTimer,
- std::map<int,wxDateTime> *ActListFinDT, std::map<int, CardDAV*> *ActListConn);
+ std::map<int,wxDateTime> *ActListFinDT, std::map<int,ConnectionObject*> *ActListConnObjects);
void EnableClearup();
};
private:
int intActivityProgress = 0;
std::map<wxString,ETagDB> ETagDBList;
- //std::map<int,ETagDB2> ETagDBListv3;
+
std::mutex ReloadLock;
public:
wxETagProcessTimer():wxTimer()
void Notify();
ETagDB* GetPointer(wxString Filename);
void ReloadAccounts();
- //void SetupPointers(frmActivityMgr *ActMgr);
};
void SleepFor(unsigned long longSleepNanoSecs);
-#endif
\ No newline at end of file
+#endif