ImportICS Method

Imports iCal data (contained in an ICS file) into the class's property list.

Syntax

int ImportICS(const QString& qsCalendarData);

Remarks

This method is used to load calendar data from an external source into the class. You may then submit this data with a call to PutCalendarEvent. If you edit any of the class properties between importing and calling PutCalendarEvent, the class will re-generate the PUT request itself. If no properties are changed, the imported data will be submitted unaltered when calling PutCalendarEvent.

Note that the CalendarData you wish to import must contain a single VEVENT, VTODO, or VJOURNAL inside of a VCALENDAR. (A VTIMEZONE may be optionally contained inside the VCALENDAR as well). If multiple calendar objects are included in the imported data they will not be parsed correctly into properties, and the server's response to the PutCalendarEvent method is undefined.

Error Handling

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Qt Edition - Version 20.0 [Build 8307]