• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KCalUtils Library

  • kcalutils
stringify.h
Go to the documentation of this file.
1/*
2 This file is part of the kcalutils library.
3
4 Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 Copyright (c) 2009-2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
22*/
32#ifndef KCALUTILS_STRINGIFY_H
33#define KCALUTILS_STRINGIFY_H
34
35#include "kcalutils_export.h"
36
37#include <kcalcore/schedulemessage.h>
38#include <kcalcore/todo.h>
39
40namespace KCalCore {
41class Exception;
42}
43
44namespace KCalUtils {
45
50namespace Stringify {
51
52KCALUTILS_EXPORT QString incidenceType(KCalCore::Incidence::IncidenceType type);
53
58KCALUTILS_EXPORT QString incidenceSecrecy(KCalCore::Incidence::Secrecy secrecy);
59
64KCALUTILS_EXPORT QStringList incidenceSecrecyList();
65
66KCALUTILS_EXPORT QString incidenceStatus(KCalCore::Incidence::Status status);
67KCALUTILS_EXPORT QString incidenceStatus(const KCalCore::Incidence::Ptr &incidence);
68KCALUTILS_EXPORT QString scheduleMessageStatus(KCalCore::ScheduleMessage::Status status);
69
75KCALUTILS_EXPORT QString todoCompletedDateTime(const KCalCore::Todo::Ptr &todo,
76 bool shortfmt = false);
77
78KCALUTILS_EXPORT QString attendeeRole(KCalCore::Attendee::Role role);
79KCALUTILS_EXPORT QStringList attendeeRoleList();
80KCALUTILS_EXPORT QString attendeeStatus(KCalCore::Attendee::PartStat status);
81KCALUTILS_EXPORT QStringList attendeeStatusList();
82
90KCALUTILS_EXPORT QString formatTime(const KDateTime &dt, bool shortfmt = true,
91 const KDateTime::Spec &spec = KDateTime::Spec());
92
100KCALUTILS_EXPORT QString formatDate(const KDateTime &dt, bool shortfmt = true,
101 const KDateTime::Spec &spec = KDateTime::Spec());
102
111KCALUTILS_EXPORT QString formatDateTime(const KDateTime &dt,
112 bool dateOnly = false,
113 bool shortfmt = true,
114 const KDateTime::Spec &spec = KDateTime::Spec());
115
119KCALUTILS_EXPORT QString errorMessage(const KCalCore::Exception &exception);
120
121KCALUTILS_EXPORT QString secrecyName(KCalCore::Incidence::Secrecy secrecy);
122
123KCALUTILS_EXPORT QStringList secrecyList();
124
125} // namespace Stringify
126
127} //namespace KCalUtils
128
129#endif
KCalCore::Attendee::Role
Role
KCalCore::Attendee::PartStat
PartStat
KCalCore::Exception
KCalCore::IncidenceBase::IncidenceType
IncidenceType
KCalCore::Incidence::Secrecy
Secrecy
KCalCore::Incidence::Ptr
QSharedPointer< Incidence > Ptr
KCalCore::Incidence::Status
Status
KCalCore::ScheduleMessage::Status
Status
KCalCore::Todo::Ptr
QSharedPointer< Todo > Ptr
KCalUtils::Stringify::formatDateTime
KCALUTILS_EXPORT QString formatDateTime(const KDateTime &dt, bool dateOnly=false, bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec())
Build a QString date/time representation of a KDateTime object.
Definition: stringify.cpp:242
KCalUtils::Stringify::errorMessage
KCALUTILS_EXPORT QString errorMessage(const KCalCore::Exception &exception)
Build a translated message representing an exception.
Definition: stringify.cpp:265
KCalUtils::Stringify::formatDate
KCALUTILS_EXPORT QString formatDate(const KDateTime &dt, bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec())
Build a QString date representation of a KDateTime object.
Definition: stringify.cpp:222
KCalUtils::Stringify::todoCompletedDateTime
KCALUTILS_EXPORT QString todoCompletedDateTime(const KCalCore::Todo::Ptr &todo, bool shortfmt=false)
Returns string containing the date/time when the to-do was completed, formatted according to the user...
Definition: stringify.cpp:65
KCalUtils::Stringify::incidenceSecrecy
KCALUTILS_EXPORT QString incidenceSecrecy(KCalCore::Incidence::Secrecy secrecy)
Returns the incidence Secrecy as translated string.
Definition: stringify.cpp:73
KCalUtils::Stringify::formatTime
KCALUTILS_EXPORT QString formatTime(const KDateTime &dt, bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec())
Build a QString time representation of a KDateTime object.
Definition: stringify.cpp:207
KCalUtils::Stringify::incidenceSecrecyList
KCALUTILS_EXPORT QStringList incidenceSecrecyList()
Returns a list of all available Secrecy types as a list of translated strings.
Definition: stringify.cpp:87
todo.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalUtils Library

Skip menu "KCalUtils Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal