+// CalDAVConnectionData: used for
+// connecting to the server.
+
+enum CalDAVQueryResult {
+ CALDAVQUERYRESULT_UNITTESTFAIL = -1,
+ CALDAVQUERYRESULT_OK,
+ CALDAVQUERYRESULT_NOTRUN,
+ CALDAVQUERYRESULT_SERVERERROR
+};
+
+struct CalDAVCalendarList {
+
+};
+
+struct CalDAVConnectionData{
+
+ string Hostname = "";
+ int Port = 8008;
+ string Username = "";
+ string Password = "";
+ string Prefix = "";
+ bool UseSSL = true;
+ int Timeout = 60;
+
+};
+
+// CalDAVStatusData: used for
+// getting the current server
+// settings for the CalDAV
+// object.
+
+struct CalDAVStatus{
+
+ string Hostname;
+ int Port;
+ string Username;
+ string Prefix;
+ bool UseSSL;
+ int Timeout;
+
+};
+
+// CalDAVServerSupport: used for
+// getting what the server supports
+// from the CalDAV specification.
+
+struct CalDAVServerSupport{
+
+ // Variable name. Name in CalDAV header.
+
+ bool BasicSupport = false; // calendar-access
+
+};
+
+// CalDAVServerResult: used for
+// getting the result of the
+// request made via the CalDAV
+// object.
+
+struct CalDAVServerResult{
+
+ CalDAVQueryResult Result = CALDAVQUERYRESULT_NOTRUN;
+ CURLcode Code = CURLE_OK;
+ long HTTPCode = 0;
+
+};
+
+// CalDAVSendData: used for
+// sending data to the CaLDAV
+// server.
+
+struct CalDAVSendData{
+ string *readptr;
+ long sizeleft;
+ int seek = 0;
+};
+