#include "../../AppXestiaCalendar.h"
#include "../../libraries/CalendarDataStorage/CalendarDataStorage.h"
+#include "../objects/CalDAV/CalDAV.h"
+#include "svrblist.h"
#include "dirs.h"
+DECLARE_EVENT_TYPE(UPDATERESULTS, wxID_ANY);
+DECLARE_EVENT_TYPE(RUNCALDAVTEST, wxID_ANY);
+
+
//// end generated include
/** Implementing frmNewAccountADT */
class frmNewAccount : public frmNewAccountADT
{
private:
- int pageSeek = 0;
+ int pageSeek = 1;
wxString serverPrefix;
bool *reloadAccountConfig = NULL;
+ struct NewAccountResult{
+ bool Connected = false;
+ bool SSLStatus = false;
+ COSSLVerified SSLVerified = COSSL_NORESULT;
+ bool ValidResponse = false;
+ bool AuthPassed = false;
+ bool CanProcess = false;
+ std::string ErrorMessage = "";
+ };
protected:
// Handlers for frmNewAccountADT events.
- void UpdateRequirements( wxCommandEvent& event );
- void CheckAccountName( wxCommandEvent& event );
- void ProcessPrevious( wxCommandEvent& event );
- void ProcessNext( wxCommandEvent& event );
+ void UpdateRequirements( wxCommandEvent &event );
+ void UpdateResults( wxCommandEvent &event );
+ void RunCalDAVTest( wxCommandEvent &event );
+ void CheckAccountName( wxCommandEvent &event );
+ void Navigate( wxCommandEvent& event );
void CloseWindow( wxCommandEvent& event );
void WriteAccountDetails( wxFileConfig *cfgFileIn, wxString accountType, wxString directoryName );
+#if defined(__APPLE__)
+ int DisplayTrustPanel(ConnectionObject *Connection);
+ SecTrustResultType ProcessResultType(ConnectionObject *Connection);
+#endif
public:
/** Constructor */
frmNewAccount( wxWindow* parent );
void SetupPointers(bool *reloadAccountInc, CalendarDataStorage *dataStorage);
+ DECLARE_EVENT_TABLE()
//// end generated class members
};