X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FfrmMain.h;h=dd4273bba8d92090d309019638e6ca674dc4a571;hp=1c9cddc91d40f5c54df1571ccab49c492ad95fd2;hb=60610b9783dc136d455389227c1b71627f47aba5;hpb=93e56b6b6222c68d1fba49974b564f362a08d1bd diff --git a/source/frmMain.h b/source/frmMain.h index 1c9cddc..dd4273b 100644 --- a/source/frmMain.h +++ b/source/frmMain.h @@ -47,6 +47,7 @@ Subclass of frmMainADT, which is generated by wxFormBuilder. #include "common/timers.h" #include "common/events.h" #include "common/etag.h" +#include "common/structs.h" #include "bitmaps.h" #include "common/sslcertstructs.h" #include "widgets/XABContactMenu.h" @@ -75,6 +76,7 @@ DECLARE_EVENT_TYPE(WINDOW_EDIT, wxID_ANY); DECLARE_EVENT_TYPE(WINDOW_CLOSE, wxID_ANY); DECLARE_EVENT_TYPE(CONNSTAT_UPDATE, wxID_ANY); DECLARE_EVENT_TYPE(INVALIDSSLCERT, wxID_ANY); +DECLARE_EVENT_TYPE(INVALIDSSLCERTSTRING, wxID_ANY); DECLARE_EVENT_TYPE(GETSELECTEDLIST, wxID_ANY); DECLARE_EVENT_TYPE(SYNCACCOUNT, wxID_ANY); DECLARE_EVENT_TYPE(IMPORT_RESULTSSHOW, wxID_ANY); @@ -98,11 +100,6 @@ struct SWCloseNotif{ void *SCHWinPtr; }; -struct QRNotif{ - int *QResponse; - bool *PausePtr; -}; - struct XABViewMode{ int SortMode; @@ -130,9 +127,9 @@ class frmMain : public frmMainADT #if defined(__APPLE__) std::map AccountTrustData; #elif defined(__WIN32__) - std::map AccountCertificateData; + std::map AccountCertificateData; #else - std::map AccountSSLData; + std::map AccountSSLData; #endif std::map AccountSSLResult; std::multimap AccountGroupList; @@ -151,7 +148,6 @@ class frmMain : public frmMainADT std::map WindowListPointersMenu; std::map WindowListPointers; std::map WindowListType; - //std::map WindowListType; wxMenuItem *mnuContactWindows; wxMenuItem *mnuContactEditorWindows; wxMenuItem *mnuSearchWindows; @@ -159,18 +155,15 @@ class frmMain : public frmMainADT bool RevealWait = FALSE; wxString SessionID; wxString OldSessionID; + wxColour ContactBackgroundColour; wxIcon IconEmp; - //wxIcon Emp; - //wxComboCtrl* AccControl = new wxGenericComboCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize); - //wxComboCtrl* AccControl = new wxComboCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxCB_READONLY|wxEXPAND|wxCC_STD_BUTTON); - //wxStaticBitmap* AccIcon = new wxStaticBitmap(this, wxID_ANY, IconEmp, wxDefaultPosition, wxSize(16,16), wxALL|wxEXPAND, wxStaticBitmapNameStr); XABAccountView* treAccounts = new XABAccountView(); wxImageList *AccImgList = new wxImageList(16,16,true); wxImageList *ActMgrImgList = new wxImageList(16,16,true); - //wxIcon wxIAccInet; int AccountID; int AccountNetID; int AccountGrpID; + int AccountUnsupportedID; int AccountNoneID; bool ReloadAccounts = FALSE; bool AscendingMode = FALSE; @@ -188,6 +181,12 @@ class frmMain : public frmMainADT wxBitmap *imgSSLWarning = NULL; wxBitmap *imgOnline = NULL; wxBitmap *imgOffline = NULL; + wxBitmap *imgAddAddressBook = NULL; + wxBitmap *imgPreferences = NULL; + wxBitmap *imgSearchContacts = NULL; + wxBitmap *imgAddContact = NULL; + wxBitmap *imgEditContact = NULL; + wxBitmap *imgDeleteContact = NULL; int ActivityIconStatus = 0; int SearchUID = 0; int ContactUID = 0; @@ -253,6 +252,7 @@ class frmMain : public frmMainADT void UpdateConnectionStatus( wxCommandEvent& event ); void SetupSSLStatus( int AccountID ); void InvalidSSLCertificate( wxCommandEvent& event ); + void InvalidSSLCertificateString( wxCommandEvent& event ); void CheckUpdates( wxCommandEvent& event ); void OpenImportDialog( wxCommandEvent& event ); void OpenExportDialog( wxCommandEvent& event ); @@ -279,10 +279,11 @@ class frmMain : public frmMainADT #if defined(__APPLE__) void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SecTrustRef SecurityTrustObject); #elif defined(__WIN32__) - void UpdateSSLAccountStatus(int AccountID, int SSLStatus, CERT_CONTEXT CertificateContext); + void UpdateSSLAccountStatus(int AccountID, int SSLStatus, PCCERT_CONTEXT CertificateContext); #else - void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollection SSLCertInc); + void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollectionString SSLCertInc); #endif + bool CloseAllWindows(); DECLARE_EVENT_TABLE() //// end generated class members