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

KCalUtils Library

  • sources
  • kde-4.14
  • kdepimlibs
  • 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 
40 namespace KCalCore {
41 class Exception;
42 }
43 
44 namespace KCalUtils {
45 
50 namespace Stringify {
51 
52 KCALUTILS_EXPORT QString incidenceType(KCalCore::Incidence::IncidenceType type);
53 
58 KCALUTILS_EXPORT QString incidenceSecrecy(KCalCore::Incidence::Secrecy secrecy);
59 
64 KCALUTILS_EXPORT QStringList incidenceSecrecyList();
65 
66 KCALUTILS_EXPORT QString incidenceStatus(KCalCore::Incidence::Status status);
67 KCALUTILS_EXPORT QString incidenceStatus(const KCalCore::Incidence::Ptr &incidence);
68 KCALUTILS_EXPORT QString scheduleMessageStatus(KCalCore::ScheduleMessage::Status status);
69 
75 KCALUTILS_EXPORT QString todoCompletedDateTime(const KCalCore::Todo::Ptr &todo,
76  bool shortfmt = false);
77 
78 KCALUTILS_EXPORT QString attendeeRole(KCalCore::Attendee::Role role);
79 KCALUTILS_EXPORT QStringList attendeeRoleList();
80 KCALUTILS_EXPORT QString attendeeStatus(KCalCore::Attendee::PartStat status);
81 KCALUTILS_EXPORT QStringList attendeeStatusList();
82 
90 KCALUTILS_EXPORT QString formatTime(const KDateTime &dt, bool shortfmt = true,
91  const KDateTime::Spec &spec = KDateTime::Spec());
92 
100 KCALUTILS_EXPORT QString formatDate(const KDateTime &dt, bool shortfmt = true,
101  const KDateTime::Spec &spec = KDateTime::Spec());
102 
111 KCALUTILS_EXPORT QString formatDateTime(const KDateTime &dt,
112  bool dateOnly = false,
113  bool shortfmt = true,
114  const KDateTime::Spec &spec = KDateTime::Spec());
115 
119 KCALUTILS_EXPORT QString errorMessage(const KCalCore::Exception &exception);
120 
121 KCALUTILS_EXPORT QString secrecyName(KCalCore::Incidence::Secrecy secrecy);
122 
123 KCALUTILS_EXPORT QStringList secrecyList();
124 
125 } // namespace Stringify
126 
127 } //namespace KCalUtils
128 
129 #endif
KCalCore::Exception
KCalCore::Attendee::Role
Role
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::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::incidenceSecrecyList
KCALUTILS_EXPORT QStringList incidenceSecrecyList()
Returns a list of all available Secrecy types as a list of translated strings.
Definition: stringify.cpp:87
QSharedPointer
todo.h
KCalCore::Attendee::PartStat
PartStat
KCalUtils::Stringify::incidenceSecrecy
KCALUTILS_EXPORT QString incidenceSecrecy(KCalCore::Incidence::Secrecy secrecy)
Returns the incidence Secrecy as translated string.
QString
KCalUtils::Stringify::errorMessage
KCALUTILS_EXPORT QString errorMessage(const KCalCore::Exception &exception)
Build a translated message representing an exception.
Definition: stringify.cpp:265
QStringList
KCalCore::ScheduleMessage::Status
Status
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::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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:46 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs 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

Search



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