CALDAVQUERYRESULT_SERVERERROR
};
+struct CalDAVCalendarList {
+
+};
+
struct CalDAVConnectionData{
string Hostname = "";
};
+// CalDAVSendData: used for
+// sending data to the CaLDAV
+// server.
+
+struct CalDAVSendData{
+ string *readptr;
+ long sizeleft;
+ int seek = 0;
+};
+
class CalDAV{
private:
+ string ProcessXMLUserPrincipal();
+ bool MatchXMLName(xmlNodePtr *NodePtr, string NodeName);
+ string FetchXMLData(xmlNodePtr *NodePtr);
+
CalDAVConnectionData ConnectionData;
+ CalDAVServerResult ConnectionServerResult;
CURL *ConnectionHandle = nullptr;
string ServerData = "";
string ServerHeader = "";
public:
+ CalDAV();
+ ~CalDAV();
void SetupConnectionData(CalDAVConnectionData *ConnData);
CalDAVStatus GetConnectionData();
CalDAVServerResult Connect();
+ CalDAVServerResult GetServerResult();
CalDAVServerSupport GetServerSupport();
- CalDAV();
- ~CalDAV();
+ CalDAVCalendarList GetCalendars();
+
+ string GetUserPrincipal();
};