KGAPI2::CalendarService
Typedefs | |
using | EventSerializeFlags = QFlags<EventSerializeFlag> |
Enumerations | |
enum class | EventSerializeFlag { Default = 0 , NoID = 1 << 0 } |
Detailed Description
Additional methods for implementing support for Google Calendar service.
You should never need to use these methods, unless implementing your own Job
Typedef Documentation
◆ EventSerializeFlags
using KGAPI2::CalendarService::EventSerializeFlags = QFlags<EventSerializeFlag> |
Definition at line 34 of file calendarservice.h.
Enumeration Type Documentation
◆ EventSerializeFlag
|
strong |
Definition at line 30 of file calendarservice.h.
Function Documentation
◆ APIVersion()
KGAPICALENDAR_EXPORT QString KGAPI2::CalendarService::APIVersion | ( | ) |
Supported API version.
Definition at line 286 of file calendarservice.cpp.
◆ calendarToJSON()
KGAPICALENDAR_EXPORT QByteArray KGAPI2::CalendarService::calendarToJSON | ( | const CalendarPtr & | calendar | ) |
Serializes calendar into JSON.
- Parameters
-
calendar
Definition at line 344 of file calendarservice.cpp.
◆ createCalendarUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::createCalendarUrl | ( | ) |
Returns URL for creating a new calendar.
Definition at line 98 of file calendarservice.cpp.
◆ createEventUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::createEventUrl | ( | const QString & | calendarID, |
SendUpdatesPolicy | updatesPolicy ) |
Returns URL creating new events.
- Parameters
-
calendarID ID of calendar in which to create the event updatesPolicy Whether to send notification to participants
Definition at line 156 of file calendarservice.cpp.
◆ eventToJSON()
KGAPICALENDAR_EXPORT QByteArray KGAPI2::CalendarService::eventToJSON | ( | const EventPtr & | event, |
EventSerializeFlags | flags = EventSerializeFlag::Default ) |
◆ eventTypeFromString()
KGAPICALENDAR_EXPORT Event::EventType KGAPI2::CalendarService::eventTypeFromString | ( | const QString & | eventType | ) |
Converts event type string to enum value.
Definition at line 848 of file calendarservice.cpp.
◆ eventTypeToString()
KGAPICALENDAR_EXPORT QString KGAPI2::CalendarService::eventTypeToString | ( | Event::EventType | eventType | ) |
Converts event type enum value to string.
Definition at line 831 of file calendarservice.cpp.
◆ fetchCalendarsUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::fetchCalendarsUrl | ( | ) |
Returns URL for fetching calendars list.
Definition at line 77 of file calendarservice.cpp.
◆ fetchCalendarUrl()
Returns URL for fetching single calendar.
- Parameters
-
calendarID calendar ID
Definition at line 84 of file calendarservice.cpp.
◆ fetchEventsUrl()
Returns URL for fetching all events from a specific calendar.
- Parameters
-
calendarID ID of calendar from which to fetch events
Definition at line 112 of file calendarservice.cpp.
◆ fetchEventUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::fetchEventUrl | ( | const QString & | calendarID, |
const QString & | eventID ) |
Returns URL for fetching a single event from a specific calendar.
- Parameters
-
calendarID ID of calendar from which to fetch the event eventID ID of event to fetch
Definition at line 119 of file calendarservice.cpp.
◆ freeBusyQueryUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::freeBusyQueryUrl | ( | ) |
Returns URL for freebusy queries.
Definition at line 193 of file calendarservice.cpp.
◆ importEventUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::importEventUrl | ( | const QString & | calendarID, |
SendUpdatesPolicy | updatesPolicy ) |
Returns URL importing private copies of existing events.
- Parameters
-
calendarID ID of calendar in which to create the event updatesPolicy Whether to send notification to participants
Definition at line 166 of file calendarservice.cpp.
◆ JSONToCalendar()
KGAPICALENDAR_EXPORT CalendarPtr KGAPI2::CalendarService::JSONToCalendar | ( | const QByteArray & | jsonData | ) |
Parses calendar JSON data into Calendar object.
- Parameters
-
jsonData
Definition at line 291 of file calendarservice.cpp.
◆ JSONToEvent()
KGAPICALENDAR_EXPORT EventPtr KGAPI2::CalendarService::JSONToEvent | ( | const QByteArray & | jsonData | ) |
Parses event JSON into Event object.
- Parameters
-
jsonData
Definition at line 390 of file calendarservice.cpp.
◆ moveEventUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::moveEventUrl | ( | const QString & | sourceCalendar, |
const QString & | destCalendar, | ||
const QString & | eventID ) |
Returns URL for moving event between calendars.
- Parameters
-
sourceCalendar ID of calendar from which to remove the event destCalendar ID of calendar to which to move the even eventID ID of event in the sourceCalendar
to move
Definition at line 183 of file calendarservice.cpp.
◆ parseCalendarJSONFeed()
KGAPICALENDAR_EXPORT ObjectsList KGAPI2::CalendarService::parseCalendarJSONFeed | ( | const QByteArray & | jsonFeed, |
FeedData & | feedData ) |
Parses JSON feed into list of Calendars.
- Parameters
-
jsonFeed feedData The structure will be filled with additional information about the feed, including URL for next page (if any)
Definition at line 363 of file calendarservice.cpp.
◆ parseEventJSONFeed()
KGAPICALENDAR_EXPORT ObjectsList KGAPI2::CalendarService::parseEventJSONFeed | ( | const QByteArray & | jsonFeed, |
FeedData & | feedData ) |
Parses JSON feed into list of Events.
- Parameters
-
jsonFeed feedData The structure will be filled with additional information about the feed, including URL for next page (if any)
Definition at line 793 of file calendarservice.cpp.
◆ prepareRequest()
KGAPICALENDAR_EXPORT QNetworkRequest KGAPI2::CalendarService::prepareRequest | ( | const QUrl & | url | ) |
Preparse a QNetworkRequest for given URL.
- Parameters
-
url
Definition at line 67 of file calendarservice.cpp.
◆ removeCalendarUrl()
Returns URL for removing an existing calendar.
- Parameters
-
calendarID ID of calendar to remove
Definition at line 105 of file calendarservice.cpp.
◆ removeEventUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::removeEventUrl | ( | const QString & | calendarID, |
const QString & | eventID ) |
Returns URL for removing events.
- Parameters
-
calendarID ID of parent calendar eventID ID of event to remove.
Definition at line 176 of file calendarservice.cpp.
◆ updateCalendarUrl()
Returns URL for updating existing calendar.
- Parameters
-
calendarID ID of calendar to modify
Definition at line 91 of file calendarservice.cpp.
◆ updateEventUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::updateEventUrl | ( | const QString & | calendarID, |
const QString & | eventID, | ||
SendUpdatesPolicy | updatesPolicy ) |
Returns URL for updating a single event.
- Parameters
-
calendarID ID of calendar in which the event is eventID ID of event to update updatesPolicy Whether to send notification to participants
Definition at line 146 of file calendarservice.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.