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 285 of file calendarservice.cpp.
◆ calendarToJSON()
KGAPICALENDAR_EXPORT QByteArray KGAPI2::CalendarService::calendarToJSON | ( | const CalendarPtr & | calendar | ) |
Serializes calendar into JSON.
- Parameters
-
calendar
Definition at line 343 of file calendarservice.cpp.
◆ createCalendarUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::createCalendarUrl | ( | ) |
Returns URL for creating a new calendar.
Definition at line 97 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 155 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 847 of file calendarservice.cpp.
◆ eventTypeToString()
KGAPICALENDAR_EXPORT QString KGAPI2::CalendarService::eventTypeToString | ( | Event::EventType | eventType | ) |
Converts event type enum value to string.
Definition at line 830 of file calendarservice.cpp.
◆ fetchCalendarsUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::fetchCalendarsUrl | ( | ) |
Returns URL for fetching calendars list.
Definition at line 76 of file calendarservice.cpp.
◆ fetchCalendarUrl()
Returns URL for fetching single calendar.
- Parameters
-
calendarID calendar ID
Definition at line 83 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 111 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 118 of file calendarservice.cpp.
◆ freeBusyQueryUrl()
KGAPICALENDAR_EXPORT QUrl KGAPI2::CalendarService::freeBusyQueryUrl | ( | ) |
Returns URL for freebusy queries.
Definition at line 192 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 165 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 290 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 389 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 182 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 362 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 792 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 66 of file calendarservice.cpp.
◆ removeCalendarUrl()
Returns URL for removing an existing calendar.
- Parameters
-
calendarID ID of calendar to remove
Definition at line 104 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 175 of file calendarservice.cpp.
◆ updateCalendarUrl()
Returns URL for updating existing calendar.
- Parameters
-
calendarID ID of calendar to modify
Definition at line 90 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 145 of file calendarservice.cpp.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:31 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.