// it under the terms of the GNU General Public License as published by the
// Free Software Foundation, version 3 of the license.
//
// it under the terms of the GNU General Public License as published by the
// Free Software Foundation, version 3 of the license.
//
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-size_t CalDAVReceive(char *ReceivedBuffer, size_t Size, size_t NewMemoryBytes, string *StringPointer)
+size_t CalDAVReceive(char *receivedBuffer, size_t size, size_t newMemoryBytes, string *stringPointer)
-size_t CalDAVSend(char *SendBuffer, size_t Size, size_t NewMemoryBytes, void *DataStruct){
+size_t CalDAVSend(char *sendBuffer, size_t size, size_t newMemoryBytes, void *dataStruct){
// Get the current connection settings for the CalDAV
// connection object and return a CalDAVStatus object.
// Get the current connection settings for the CalDAV
// connection object and return a CalDAVStatus object.
- ConnectionStatus.Hostname = ConnectionData.Hostname;
- ConnectionStatus.Port = ConnectionData.Port;
- ConnectionStatus.Username = ConnectionData.Username;
- ConnectionStatus.Prefix = ConnectionData.Prefix;
- ConnectionStatus.UseSSL = ConnectionData.UseSSL;
- ConnectionStatus.Timeout = ConnectionData.Timeout;
+ connectionStatus.hostname = connectionData.hostname;
+ connectionStatus.port = connectionData.port;
+ connectionStatus.username = connectionData.username;
+ connectionStatus.prefix = connectionData.prefix;
+ connectionStatus.useSSL = connectionData.useSSL;
+ connectionStatus.timeout = connectionData.timeout;
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, ServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_USERPWD, ServerUserPass.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
- curl_easy_setopt(ConnectionHandle, CURLOPT_FAILONERROR, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_TIMEOUT, ConnectionData.Timeout);
- curl_easy_setopt(ConnectionHandle, CURLOPT_WRITEFUNCTION, CalDAVReceive);
- curl_easy_setopt(ConnectionHandle, CURLOPT_WRITEDATA, &ServerData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_WRITEHEADER, &ServerHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, serverAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_USERPWD, serverUserPass.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
+ curl_easy_setopt(connectionHandle, CURLOPT_FAILONERROR, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_TIMEOUT, connectionData.timeout);
+ curl_easy_setopt(connectionHandle, CURLOPT_WRITEFUNCTION, CalDAVReceive);
+ curl_easy_setopt(connectionHandle, CURLOPT_WRITEDATA, &serverData);
+ curl_easy_setopt(connectionHandle, CURLOPT_WRITEHEADER, &serverHeader);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
}
// Check that the server header has data in,
// otherwise return an "empty" CalDAVServerSupport.
}
// Check that the server header has data in,
// otherwise return an "empty" CalDAVServerSupport.
- string CurrentUserPrincipal = "";
- string UserPrincipalRequest = "";
- CalDAVSendData UserPrincipalSendData;
+ string currentUserPrincipal = "";
+ string userPrincipalRequest = "";
+ CalDAVSendData userPrincipalSendData;
- UserPrincipalSendData.readptr = &UserPrincipalRequest;
- UserPrincipalSendData.sizeleft = UserPrincipalRequest.size();
+ userPrincipalSendData.readptr = &userPrincipalRequest;
+ userPrincipalSendData.sizeleft = userPrincipalRequest.size();
- UserPrincipalRequestHeader = curl_slist_append(UserPrincipalRequestHeader, "Depth: 0");
- UserPrincipalRequestHeader = curl_slist_append(UserPrincipalRequestHeader, "Prefer: return-minimal");
- UserPrincipalRequestHeader = curl_slist_append(UserPrincipalRequestHeader, "Content-Type: application/xml; charset=utf-8");
+ userPrincipalRequestHeader = curl_slist_append(userPrincipalRequestHeader, "Depth: 0");
+ userPrincipalRequestHeader = curl_slist_append(userPrincipalRequestHeader, "Prefer: return-minimal");
+ userPrincipalRequestHeader = curl_slist_append(userPrincipalRequestHeader, "Content-Type: application/xml; charset=utf-8");
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "PROPFIND");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &UserPrincipalSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "PROPFIND");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &userPrincipalSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
"<d:propfind xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\">\n"
" <d:prop>\n"
" <c:calendar-home-set />\n"
" </d:prop>\n"
"</d:propfind>";
"<d:propfind xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\">\n"
" <d:prop>\n"
" <c:calendar-home-set />\n"
" </d:prop>\n"
"</d:propfind>";
- CalendarHomeSendData.readptr = &CalendarHomeRequest;
- CalendarHomeSendData.sizeleft = CalendarHomeRequest.size();
+ calendarHomeSendData.readptr = &calendarHomeRequest;
+ calendarHomeSendData.sizeleft = calendarHomeRequest.size();
- CalendarRequestHeader = curl_slist_append(CalendarRequestHeader, "Depth: 0");
- CalendarRequestHeader = curl_slist_append(CalendarRequestHeader, "Prefer: return-minimal");
- CalendarRequestHeader = curl_slist_append(CalendarRequestHeader, "Content-Type: application/xml; charset=utf-8");
+ calendarRequestHeader = curl_slist_append(calendarRequestHeader, "Depth: 0");
+ calendarRequestHeader = curl_slist_append(calendarRequestHeader, "Prefer: return-minimal");
+ calendarRequestHeader = curl_slist_append(calendarRequestHeader, "Content-Type: application/xml; charset=utf-8");
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, CalendarRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, CalendarHomeURL.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "PROPFIND");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &CalendarHomeSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, calendarRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, calendarHomeURL.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "PROPFIND");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &calendarHomeSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
"<d:propfind xmlns:d=\"DAV:\" xmlns:cs=\"http://calendarserver.org/ns/\""
" xmlns:c=\"urn:ietf:params:xml:ns:caldav\" xmlns:x0=\"http://apple.com/ns/ical/\">\n"
" <d:prop>\n"
"<d:propfind xmlns:d=\"DAV:\" xmlns:cs=\"http://calendarserver.org/ns/\""
" xmlns:c=\"urn:ietf:params:xml:ns:caldav\" xmlns:x0=\"http://apple.com/ns/ical/\">\n"
" <d:prop>\n"
- CalendarListSendData.readptr = &CalendarListRequest;
- CalendarListSendData.sizeleft = CalendarListRequest.size();
+ calendarListSendData.readptr = &calendarListRequest;
+ calendarListSendData.sizeleft = calendarListRequest.size();
- CalendarListRequestHeader = curl_slist_append(CalendarListRequestHeader, "Depth: 1");
- CalendarListRequestHeader = curl_slist_append(CalendarListRequestHeader, "Prefer: return-minimal");
- CalendarListRequestHeader = curl_slist_append(CalendarListRequestHeader, "Content-Type: application/xml; charset=utf-8");
+ calendarListRequestHeader = curl_slist_append(calendarListRequestHeader, "Depth: 1");
+ calendarListRequestHeader = curl_slist_append(calendarListRequestHeader, "Prefer: return-minimal");
+ calendarListRequestHeader = curl_slist_append(calendarListRequestHeader, "Content-Type: application/xml; charset=utf-8");
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, CalendarListRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, CalendarListURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "PROPFIND");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &CalendarListSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, calendarListRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, calendarListURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "PROPFIND");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &calendarListSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
- EntryListSendData.readptr = &EntryListRequest;
- EntryListSendData.sizeleft = EntryListRequest.size();
+ entryListSendData.readptr = &entryListRequest;
+ entryListSendData.sizeleft = entryListRequest.size();
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, EntryListRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, EntryListURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &EntryListSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, entryListRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, entryListURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &entryListSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
- EntryListSendData.readptr = &EntryListRequest;
- EntryListSendData.sizeleft = EntryListRequest.size();
+ entryListSendData.readptr = &entryListRequest;
+ entryListSendData.sizeleft = entryListRequest.size();
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, EntryListRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, EntryListURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &EntryListSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, entryListRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, entryListURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &entryListSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
- EntryList.HREF.erase((EntryList.HREF.size() - 1));
- EntryList.Tag.erase((EntryList.HREF.size() - 1));
- EntryList.Data.erase((EntryList.HREF.size() - 1));
+ entryList.href.erase((entryList.href.size() - 1));
+ entryList.tag.erase((entryList.href.size() - 1));
+ entryList.data.erase((entryList.href.size() - 1));
- for (std::map<int,string>::iterator HREFIter = EntryList.HREF.begin();
- HREFIter != EntryList.HREF.end(); HREFIter++){
+ for (std::map<int,string>::iterator hrefIter = entryList.href.begin();
+ hrefIter != entryList.href.end(); hrefIter++){
- EntryListRequest += " <d:href>";
- EntryListRequest += EntryListHREFString;
- EntryListRequest += "</d:href>\n";
+ entryListRequest += " <d:href>";
+ entryListRequest += entryListHREFString;
+ entryListRequest += "</d:href>\n";
- UpdatedEntryListSendData.readptr = &EntryListRequest;
- UpdatedEntryListSendData.sizeleft = EntryListRequest.size();
+ updatedEntryListSendData.readptr = &entryListRequest;
+ updatedEntryListSendData.sizeleft = entryListRequest.size();
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, EntryListRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, EntryListURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &UpdatedEntryListSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, entryListRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, entryListURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &updatedEntryListSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ConnectionServerResult.Code = ServerResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+ connectionServerResult.code = serverResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &connectionServerResult.httpCode);
// Second query: Get the list of contact data for the contacts that have
// beenchanged.
// Restore the original settings.
// Second query: Get the list of contact data for the contacts that have
// beenchanged.
// Restore the original settings.
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
- string CalendarHomeURL = CalendarHomeURI;
- CalendarHomeURL.append(UUIDValue);
- CalendarHomeURL.append("/");
+ string calendarHomeURL = calendarHomeURI;
+ calendarHomeURL.append(UUIDValue);
+ calendarHomeURL.append("/");
" <c:supported-calendar-component-set>\n"
" <c:comp name=\"VTODO\"/>\n"
" <c:comp name=\"VEVENT\"/>\n"
" <c:supported-calendar-component-set>\n"
" <c:comp name=\"VTODO\"/>\n"
" <c:comp name=\"VEVENT\"/>\n"
- CalendarAddSendData.readptr = &CalendarAddRequest;
- CalendarAddSendData.sizeleft = CalendarAddRequest.size();
+ calendarAddSendData.readptr = &calendarAddRequest;
+ calendarAddSendData.sizeleft = calendarAddRequest.size();
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, CalendarListURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "MKCALENDAR");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &CalendarAddSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, calendarListURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "MKCALENDAR");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &calendarAddSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
-CalDAVServerResult CalDAV::EditCalendarProcess(string *CalendarHREF,
- string *CalendarName,
- Colour *CalendarColour,
- string *CalendarDescription,
- int *CalendarOrder){
+CalDAVServerResult CalDAV::EditCalendarProcess(string *calendarHREF,
+ string *calendarName,
+ Colour *calendarColour,
+ string *calendarDescription,
+ int *calendarOrder){
- string CalendarHomeURL = CalendarHomeURI;
- CalendarHomeURL.append(UUIDValue);
- CalendarHomeURL.append("/");
+ string calendarHomeURL = calendarHomeURI;
+ calendarHomeURL.append(UUIDValue);
+ calendarHomeURL.append("/");
"<d:propertyupdate xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\"\n"
" xmlns:x0=\"http://apple.com/ns/ical/\">\n"
" <d:set>\n"
"<d:propertyupdate xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\"\n"
" xmlns:x0=\"http://apple.com/ns/ical/\">\n"
" <d:set>\n"
- CalendarEditRequest += "<d:displayname>";
- CalendarEditRequest += (*CalendarName);
- CalendarEditRequest += "</d:displayname>\n";
+ calendarEditRequest += "<d:displayname>";
+ calendarEditRequest += (*calendarName);
+ calendarEditRequest += "</d:displayname>\n";
- CalendarEditRequest += "<x0:calendar-color>";
- CalendarEditRequest += (*CalendarColour);
- CalendarEditRequest += "</x0:calendar-color>\n";
+ calendarEditRequest += "<x0:calendar-color>";
+ calendarEditRequest += (*calendarColour);
+ calendarEditRequest += "</x0:calendar-color>\n";
- CalendarEditRequest += "<c:calendar-description>";
- CalendarEditRequest += (*CalendarDescription);
- CalendarEditRequest += "</c:calendar-description>\n";
+ calendarEditRequest += "<c:calendar-description>";
+ calendarEditRequest += (*calendarDescription);
+ calendarEditRequest += "</c:calendar-description>\n";
- CalendarEditRequest += "<x0:calendar-order>";
- CalendarEditRequest += to_string((*CalendarOrder));
- CalendarEditRequest += "</x0:calendar-order>\n";
+ calendarEditRequest += "<x0:calendar-order>";
+ calendarEditRequest += to_string((*calendarOrder));
+ calendarEditRequest += "</x0:calendar-order>\n";
- CalendarEditSendData.readptr = &CalendarEditRequest;
- CalendarEditSendData.sizeleft = CalendarEditRequest.size();
+ calendarEditSendData.readptr = &calendarEditRequest;
+ calendarEditSendData.sizeleft = calendarEditRequest.size();
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, CalendarEditURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "PROPPATCH");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &CalendarEditSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, calendarEditURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "PROPPATCH");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &calendarEditSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
-CalDAVServerResult CalDAV::EditCalendar(string *CalendarHREF,
- string *CalendarName,
- Colour *CalendarColour,
- string *CalendarDescription,
- int *CalendarOrder){
+CalDAVServerResult CalDAV::EditCalendar(string *calendarHREF,
+ string *calendarName,
+ Colour *calendarColour,
+ string *calendarDescription,
+ int *calendarOrder){
-CalDAVServerResult CalDAV::EditCalendar(string *CalendarHREF,
- Colour *CalendarColour){
-
+CalDAVServerResult CalDAV::EditCalendar(string *calendarHREF,
+ Colour *calendarColour){
-CalDAVServerResult CalDAV::EditCalendarDescription(string *CalendarHREF,
- string *CalendarDescription){
+CalDAVServerResult CalDAV::EditCalendarDescription(string *calendarHREF,
+ string *calendarDescription){
- string CalendarHomeURL = CalendarHomeURI;
- CalendarHomeURL.append(UUIDValue);
- CalendarHomeURL.append("/");
+ string calendarHomeURL = calendarHomeURI;
+ calendarHomeURL.append(UUIDValue);
+ calendarHomeURL.append("/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, DeleteRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, CalendarDeleteURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "DELETE");
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, deleteRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, calendarDeleteURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "DELETE");
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
- EntryETagGetData.readptr = &EntryETagRequest;
- EntryETagGetData.sizeleft = EntryETagRequest.size();
+ entryETagGetData.readptr = &entryETagRequest;
+ entryETagGetData.sizeleft = entryETagRequest.size();
- GetETagRequestHeader = curl_slist_append(GetETagRequestHeader, "Depth: 1");
- GetETagRequestHeader = curl_slist_append(GetETagRequestHeader, "Prefer: return-minimal");
- GetETagRequestHeader = curl_slist_append(GetETagRequestHeader, "Content-Type: application/xml; charset=utf-8");
+ getETagRequestHeader = curl_slist_append(getETagRequestHeader, "Depth: 1");
+ getETagRequestHeader = curl_slist_append(getETagRequestHeader, "Prefer: return-minimal");
+ getETagRequestHeader = curl_slist_append(getETagRequestHeader, "Content-Type: application/xml; charset=utf-8");
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, GetETagRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, GetETagURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &EntryETagGetData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, getETagRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, getETagURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "REPORT");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &entryETagGetData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, CalendarRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, EntryAddURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "PUT");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &EntryAddSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, calendarRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, entryAddURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "PUT");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &entryAddSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
-CalDAVServerResult CalDAV::EditEntry(string *CalendarEntryHREF, string *EntryData, string *EntryETag){
+CalDAVServerResult CalDAV::EditEntry(string *calendarEntryHREF, string *entryData, string *entryETag){
- string IfMatchHeader = "If-Match: \"";
- IfMatchHeader.append(*EntryETag);
- IfMatchHeader.append("\"");
+ string ifMatchHeader = "If-Match: \"";
+ ifMatchHeader.append(*entryETag);
+ ifMatchHeader.append("\"");
- CalendarRequestHeader = curl_slist_append(CalendarRequestHeader, "Content-Type: text/calendar; charset=utf-8");
- CalendarRequestHeader = curl_slist_append(CalendarRequestHeader, IfMatchHeader.c_str());
+ calendarRequestHeader = curl_slist_append(calendarRequestHeader, "Content-Type: text/calendar; charset=utf-8");
+ calendarRequestHeader = curl_slist_append(calendarRequestHeader, ifMatchHeader.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, CalendarRequestHeader);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, EntryAddURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "PUT");
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 1L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, &EntryAddSendData);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, calendarRequestHeader);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, entryAddURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "PUT");
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 1L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, &entryAddSendData);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, CalDAVSend);
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, EntryDeleteURLAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "DELETE");
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, entryDeleteURLAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, "DELETE");
- ServerResult.Code = ServerConnectionResult;
- curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ServerResult.HTTPCode);
+ serverResult.code = serverConnectionResult;
+ curl_easy_getinfo(connectionHandle, CURLINFO_RESPONSE_CODE, &serverResult.httpCode);
- string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
- curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
- curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
- curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
+ string originalServerAddress = BuildServerAddress(&connectionData, "/principals/");
+ curl_easy_setopt(connectionHandle, CURLOPT_URL, originalServerAddress.c_str());
+ curl_easy_setopt(connectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_UPLOAD, 0L);
+ curl_easy_setopt(connectionHandle, CURLOPT_READDATA, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_READFUNCTION, NULL);
+ curl_easy_setopt(connectionHandle, CURLOPT_HTTPHEADER, NULL);
// Check if the passed CalDAV Connection Data is has
// an address set. Return false if nullptr is used.
// Check if the passed CalDAV Connection Data is has
// an address set. Return false if nullptr is used.
// Check if server port is 80, otherwise
// specifiy the port number in the address.
// Check if server port is 80, otherwise
// specifiy the port number in the address.