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 221 of file calendarutils.cpp.

◆ displayName() [1/3]

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

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

This takes backend-specific special cases into account.

Definition at line 206 of file calendarutils.cpp.

◆ displayName() [2/3]

QString Akonadi::CalendarUtils::displayName ( const Akonadi::Collection & collection)
nodiscard

Definition at line 216 of file calendarutils.cpp.

◆ displayName() [3/3]

QString Akonadi::CalendarUtils::displayName ( const Akonadi::EntityTreeModel * model,
const Akonadi::Collection & collection )
nodiscard

Definition at line 211 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 39 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 28 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 65 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 52 of file calendarutils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:52:11 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.