From 18117cb75689beaa9f5e96e44c3e0ea00fe1fa0a Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 3 Mar 2016 03:50:40 +0000 Subject: [PATCH] Added the CalDAVSendData struct and added more subroutines to the CalDAV object --- source/objects/CalDAV/CalDAV.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/source/objects/CalDAV/CalDAV.h b/source/objects/CalDAV/CalDAV.h index 7e87cf6..da3b58c 100644 --- a/source/objects/CalDAV/CalDAV.h +++ b/source/objects/CalDAV/CalDAV.h @@ -39,6 +39,10 @@ enum CalDAVQueryResult { CALDAVQUERYRESULT_SERVERERROR }; +struct CalDAVCalendarList { + +}; + struct CalDAVConnectionData{ string Hostname = ""; @@ -92,21 +96,40 @@ struct CalDAVServerResult{ }; +// 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(); }; -- 2.39.2