From: Steve Brokenshire Date: Thu, 3 Mar 2016 03:50:40 +0000 (+0000) Subject: Added the CalDAVSendData struct and added more subroutines to the CalDAV object X-Git-Tag: release-0.02~308 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=18117cb75689beaa9f5e96e44c3e0ea00fe1fa0a;p=xestiacalendar%2F.git Added the CalDAVSendData struct and added more subroutines to the CalDAV object --- 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(); };