Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added the CalDAVSendData struct and added more subroutines to the CalDAV object
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 3 Mar 2016 03:50:40 +0000 (03:50 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 3 Mar 2016 03:50:40 +0000 (03:50 +0000)
source/objects/CalDAV/CalDAV.h

index 7e87cf6..da3b58c 100644 (file)
@@ -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();
        
 };
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy