X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Factmgr%2FfrmActivityMgr.h;h=2c6ffc6d0c45a6515222762c6f8332fdd0e8065d;hb=d042c124580649327968a6950ef8e6f0ca2be399;hp=71b8515d09bfd7a9d4f02206c3d9cfd6072b9592;hpb=b4270b72247cfdfcffe23725c0811c7b011a5a77;p=xestiaab%2F.git diff --git a/source/actmgr/frmActivityMgr.h b/source/actmgr/frmActivityMgr.h index 71b8515..2c6ffc6 100644 --- a/source/actmgr/frmActivityMgr.h +++ b/source/actmgr/frmActivityMgr.h @@ -26,13 +26,24 @@ Subclass of frmActivityMgrADT, which is generated by wxFormBuilder. #include #include +#if defined(__APPLE__) +#import +#import +#include "../frmMain.h" +#endif #include "../AppXestiaAddrBk.h" -#include "../carddav/carddav.h" #include "../common/timers.h" #include "../common/etag.h" #include "../common/dirs.h" #include "../common/preferences.h" +#include "../common/sslcertstructs.h" +#include "../connobject/ConnectionObject.h" +#include "../carddav2/carddav2.h" + +#if defined(__WIN32__) +#include "../common/win32ssl.h" +#endif //// end generated include @@ -43,6 +54,7 @@ DECLARE_EVENT_TYPE(ACTMGR_STOPTIMER, wxID_ANY) DECLARE_EVENT_TYPE(ACTMGR_STARTPROCESSTIMER, wxID_ANY) DECLARE_EVENT_TYPE(ACTMGR_STOPPROCESSTIMER, wxID_ANY) DECLARE_EVENT_TYPE(ACTMGR_UPDATESTATUSLABEL, wxID_ANY) +DECLARE_EVENT_TYPE(ACTMGR_STARTANIMATIONTIMER, wxID_ANY) struct vCardDownloadDataFileClass{ unsigned int DataType = 0; @@ -55,6 +67,25 @@ struct ActivityMgrLabelUpdate{ wxString ItemDes; }; +#if defined(__APPLE__) +struct SSLInvalidTrustNotifObj{ + SecTrustRef SecurityTrustObject; + int *ResultValue; + bool *PausePtr; + wxString AccountName; +}; +#endif + +struct ActivityMgrAccountSettings{ + wxString Address; + int Port; + wxString Username; + wxString Password; + bool SSL; + wxString Prefix; + wxString Dir; +}; + /** Implementing frmActivityMgrADT */ class frmActivityMgr : public frmActivityMgrADT { @@ -71,22 +102,29 @@ class frmActivityMgr : public frmActivityMgrADT std::map ActivityListType; std::map ActivityListIndex; std::map ActivityListData; + std::map ActivityListURL; + std::map ActivityListEditMode; std::map ActivityListTaskDetail; std::map ActivityListAccount; std::map ActivityListFilename; std::map ActivityListFullFilename; std::map ActivityListConn; + std::map ActivityListConnObject; + std::map ActivityListAccSettings; std::map ActivityListETag; std::map ActivityListETagOriginal; std::map ActivityListFinDate; std::map ActivityListLog; bool WindowOpen = FALSE; bool TasksActive = FALSE; - bool SleepMode = FALSE; + bool ApplicationSleepMode = FALSE; bool ProcessTasksData = FALSE; //int ConflictResult = 0; wxETagProcessTimer *ETagTmrPtr; void *frmMainPtr; +#if defined(__APPLE__) + int DisplayTrustPanel(SecTrustRef SecurityTrustObject, wxString AccountNameFriendly); +#endif //frmMain *frmMainPtr; protected: // Handlers for frmActivityMgrADT events. @@ -99,11 +137,14 @@ class frmActivityMgr : public frmActivityMgrADT void StopTimer( wxCommandEvent& event ); void StartProcessTimer( wxCommandEvent& event ); void StopProcessTimer( wxCommandEvent& event ); + void StartAnimationTimer(wxCommandEvent& event); void FlushAllTasks(); void RemoveTask(); void ProcessTasksThread(); void ToggleConnectionStatus( wxCommandEvent& event ); + void SleepMode( wxCommandEvent &event ); void WriteServerCertificate(wxString AccountName, SSLCertCollection SSLCertInc); + void WriteServerCertificate(wxString AccountName, SSLCertCollectionString SSLCertInc); void UpdateStatusLabel( wxCommandEvent& event ); public: /** Constructor */