CalDAVServerResult CalDAV::AddCalendar(string CalendarName){
+ CalDAVServerResult ServerResult;
+
+ AddCalendar(&CalendarName, nullptr);
+
+ return ServerResult;
+
+}
+
+CalDAVServerResult CalDAV::AddCalendar(string *CalendarName, string *CalendarShortName){
+
CalDAVServerResult ServerResult;
CalDAVSendData CalendarAddSendData;
// Generate the UUID.
- string UUIDValue = GenerateUUID();
- UUIDValue.erase(UUIDValue.end()-1);
+ string UUIDValue = "";
+
+ if (CalendarShortName == nullptr){
+
+ UUIDValue = GenerateUUID();
+ UUIDValue.erase(UUIDValue.end()-1);
+
+ } else {
+ UUIDValue = *CalendarShortName;
+
+ }
+
string CalendarHomeURL = CalendarHomeURI;
CalendarHomeURL.append(UUIDValue);
CalendarHomeURL.append("/");
" <d:set>\n"
" <d:prop>\n"
" <d:displayname>";
- CalendarAddRequest += CalendarName;
+ CalendarAddRequest += *CalendarName;
CalendarAddRequest += "</d:displayname>\n"
" <c:supported-calendar-component-set>\n"
" <c:comp name=\"VTODO\"/>\n"
CalDAVCalendarList GetCalendars();
CalDAVServerResult AddCalendar(string CalendarName);
+ CalDAVServerResult AddCalendar(string *CalendarName, string *CalendarShortName);
CalDAVServerResult EditCalendar(string *CalendarHREF,
string *CalendarName,