KCalUtils::Stringify

KCalUtils::Stringify Namespace Reference

Functions

KCALUTILS_EXPORT QString attendeeRole (KCalendarCore::Attendee::Role role)
 
KCALUTILS_EXPORT QString attendeeStatus (KCalendarCore::Attendee::PartStat status)
 
KCALUTILS_EXPORT QString errorMessage (const KCalendarCore::Exception &exception)
 
KCALUTILS_EXPORT QString incidenceSecrecy (KCalendarCore::Incidence::Secrecy secrecy)
 
KCALUTILS_EXPORT QStringList incidenceSecrecyList ()
 
KCALUTILS_EXPORT QString incidenceStatus (const KCalendarCore::Incidence::Ptr &incidence)
 
KCALUTILS_EXPORT QString incidenceStatus (KCalendarCore::Incidence::Status status)
 
KCALUTILS_EXPORT QString incidenceType (KCalendarCore::Incidence::IncidenceType type)
 
KCALUTILS_EXPORT QString scheduleMessageStatus (KCalendarCore::ScheduleMessage::Status status)
 
KCALUTILS_EXPORT QString todoCompletedDateTime (const KCalendarCore::Todo::Ptr &todo, bool shortfmt=false)
 
KCALUTILS_EXPORT QString tzUTCOffsetStr (const QTimeZone &tz)
 

Detailed Description

Provides methods to format Incidence properties in various ways for display purposes.

Function Documentation

◆ attendeeRole()

QString KCalUtils::Stringify::attendeeRole ( KCalendarCore::Attendee::Role role)
nodiscard

Definition at line 114 of file stringify.cpp.

◆ attendeeStatus()

QString KCalUtils::Stringify::attendeeStatus ( KCalendarCore::Attendee::PartStat status)
nodiscard

Definition at line 129 of file stringify.cpp.

◆ errorMessage()

QString KCalUtils::Stringify::errorMessage ( const KCalendarCore::Exception & exception)
nodiscard

Build a translated message representing an exception.

Definition at line 152 of file stringify.cpp.

◆ incidenceSecrecy()

QString KCalUtils::Stringify::incidenceSecrecy ( KCalendarCore::Incidence::Secrecy secrecy)
nodiscard

Returns the incidence Secrecy as translated string.

See also
incidenceSecrecyList().

Definition at line 57 of file stringify.cpp.

◆ incidenceSecrecyList()

QStringList KCalUtils::Stringify::incidenceSecrecyList ( )
nodiscard

Returns a list of all available Secrecy types as a list of translated strings.

See also
incidenceSecrecy().

Definition at line 70 of file stringify.cpp.

◆ incidenceStatus() [1/2]

QString KCalUtils::Stringify::incidenceStatus ( const KCalendarCore::Incidence::Ptr & incidence)
nodiscard

Definition at line 105 of file stringify.cpp.

◆ incidenceStatus() [2/2]

QString KCalUtils::Stringify::incidenceStatus ( KCalendarCore::Incidence::Status status)
nodiscard

Definition at line 79 of file stringify.cpp.

◆ scheduleMessageStatus()

QString KCalUtils::Stringify::scheduleMessageStatus ( KCalendarCore::ScheduleMessage::Status status)
nodiscard

Definition at line 227 of file stringify.cpp.

◆ todoCompletedDateTime()

QString KCalUtils::Stringify::todoCompletedDateTime ( const KCalendarCore::Todo::Ptr & todo,
bool shortfmt = false )
nodiscard

Returns string containing the date/time when the to-do was completed, formatted according to the user's locale settings.

Parameters
shortfmtIf true, use a short date format; else use a long format.

Definition at line 52 of file stringify.cpp.

◆ tzUTCOffsetStr()

QString KCalUtils::Stringify::tzUTCOffsetStr ( const QTimeZone & tz)
nodiscard

Returns a string containing the UTC offset of the specified QTimeZone tz (relative to the current date).

The format is [+-]HH::MM, according to standards.

Since
5.8

Definition at line 245 of file stringify.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.