Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added OS X support for frmMain itself.
[xestiaab/.git] / source / frmMain.h
index 6ae03ea..e3844af 100644 (file)
@@ -37,6 +37,11 @@ Subclass of frmMainADT, which is generated by wxFormBuilder.
 #include <wx/mstream.h>
 #include <wx/tooltip.h>
 
+#if defined(__APPLE__)
+#import <Foundation/Foundation.h>
+#import <SecurityInterface/SFCertificateTrustPanel.h>
+#endif
+
 #include "common/timers.h"
 #include "common/events.h"
 #include "common/etag.h"
@@ -74,6 +79,10 @@ DECLARE_EVENT_TYPE(IMPORT_RESULTSSHOW, wxID_ANY);
 DECLARE_EVENT_TYPE(RELOADCONTACTLIST, wxID_ANY);
 DECLARE_EVENT_TYPE(REFRESHADDRESSBOOK, wxID_ANY);
 
+#if defined(__APPLE__)
+DECLARE_EVENT_TYPE(INVALIDSSLTRUST, wxID_ANY);
+#endif
+
 struct UCNotif{
        wxString ContactAccount;
        wxString ContactFilename;
@@ -116,7 +125,11 @@ class frmMain : public frmMainADT
                std::map<wxString, bool> WindowList;
                std::map<int, wxTimer> AccountRefreshList;
                std::map<int, wxString> AccountAccDirList;
+#if defined(__APPLE__)
+               std::map<int, SecTrustRef> AccountTrustData;
+#else
                std::map<int, SSLCertCollection> AccountSSLData;
+#endif
                std::map<int, int> AccountSSLResult;
                std::multimap<int, int> AccountGroupList;
                std::multimap<int, wxString> AccountGroupFilename;
@@ -178,6 +191,10 @@ class frmMain : public frmMainADT
                int WindowMenuItemID = 0;
                XABContactMenu *ContactMenu = new XABContactMenu(XABCONTACTMENU_MAIN); 
                void ResetContactInfo();
+#if defined(__APPLE__)
+               void DisplayCertificate(SecTrustRef SecurityTrustObject);
+               void DisplayTrustPanel( wxCommandEvent& event );
+#endif
        protected:
                // Handlers for frmMainADT events.
                void QuitApp( wxCloseEvent& event );
@@ -251,11 +268,15 @@ class frmMain : public frmMainADT
                void ActivityIconStop( wxCommandEvent& event );
                void PauseAllTimers();
                void ResumeAllTimers();
-               void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollection SSLCertInc);
                void GetListControl(wxListCtrl *lstContactsPtr, wxArrayString *ContactsFileIndexPtr);
                void ShowImportResults( wxCommandEvent& event );
                void ReloadContactList( wxCommandEvent& event );
                XABViewMode GetViewMode();
+#if defined(__APPLE__)
+               void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SecTrustRef SecurityTrustObject);
+#else
+               void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollection SSLCertInc);
+#endif
                DECLARE_EVENT_TABLE()
 
        //// end generated class members
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