Akonadi::CalendarUtils

Akonadi::CalendarUtils Namespace Reference

Functions

AKONADI_CALENDAR_EXPORT QMimeDatacreateMimeData (const Akonadi::Item::List &items)
 
AKONADI_CALENDAR_EXPORT QString displayName (Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
 
AKONADI_CALENDAR_EXPORT QString displayName (const Akonadi::Collection &collection)
 
AKONADI_CALENDAR_EXPORT QString displayName (const Akonadi::EntityTreeModel *model, const Akonadi::Collection &collection)
 
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event (const Akonadi::Item &item)
 
AKONADI_CALENDAR_EXPORT KCalendarCore::Incidence::Ptr incidence (const Akonadi::Item &item)
 
AKONADI_CALENDAR_EXPORT KCalendarCore::Journal::Ptr journal (const Akonadi::Item &item)
 
AKONADI_CALENDAR_EXPORT KCalendarCore::Todo::Ptr todo (const Akonadi::Item &item)
 

Detailed Description

Utility methods for dealing with calendar content in Akonadi items.

Since
5.20.42

Function Documentation

◆ createMimeData()

QMimeData * Akonadi::CalendarUtils::createMimeData ( const Akonadi::Item::List items)

Creates a MIME data object for dragging Akonadi items containing calendar incidences.

Since
5.23.41

Definition at line 220 of file calendarutils.cpp.

◆ displayName()

QString Akonadi::CalendarUtils::displayName ( Akonadi::ETMCalendar calendar,
const Akonadi::Collection collection 
)

Returns a suitable display name for the calendar (or calendar folder) collection.

This takes backend-specific special cases into account.

Definition at line 205 of file calendarutils.cpp.

◆ event()

KCalendarCore::Event::Ptr Akonadi::CalendarUtils::event ( const Akonadi::Item item)

Returns the event from an Akonadi item, or a null pointer if the item has no such payload.

Definition at line 37 of file calendarutils.cpp.

◆ incidence()

KCalendarCore::Incidence::Ptr Akonadi::CalendarUtils::incidence ( const Akonadi::Item item)

Returns the incidence from an Akonadi item, or a null pointer if the item has no such payload.

Definition at line 26 of file calendarutils.cpp.

◆ journal()

KCalendarCore::Journal::Ptr Akonadi::CalendarUtils::journal ( const Akonadi::Item item)

Returns the journal from an Akonadi item, or a null pointer if the item has no such payload.

Definition at line 63 of file calendarutils.cpp.

◆ todo()

KCalendarCore::Todo::Ptr Akonadi::CalendarUtils::todo ( const Akonadi::Item item)

Returns the todo from an Akonadi item, or a null pointer if the item has no such payload.

Definition at line 50 of file calendarutils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Nov 30 2023 03:55:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.