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

KCalUtils Library

stringify.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the kcalutils library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006   Copyright (c) 2009-2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
00007 
00008   This library is free software; you can redistribute it and/or
00009   modify it under the terms of the GNU Library General Public
00010   License as published by the Free Software Foundation; either
00011   version 2 of the License, or (at your option) any later version.
00012 
00013   This library is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016   Library General Public License for more details.
00017 
00018   You should have received a copy of the GNU Library General Public License
00019   along with this library; see the file COPYING.LIB.  If not, write to
00020   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021   Boston, MA 02110-1301, USA.
00022 */
00032 #ifndef KCALUTILS_STRINGIFY_H
00033 #define KCALUTILS_STRINGIFY_H
00034 
00035 #include "kcalutils_export.h"
00036 
00037 #include <kcalcore/schedulemessage.h>
00038 #include <kcalcore/todo.h>
00039 
00040 namespace KCalCore {
00041   class Exception;
00042 }
00043 
00044 namespace KCalUtils {
00045 
00050 namespace Stringify
00051 {
00052   KCALUTILS_EXPORT QString incidenceType( KCalCore::Incidence::IncidenceType type );
00053 
00058   KCALUTILS_EXPORT QString incidenceSecrecy( KCalCore::Incidence::Secrecy secrecy );
00059 
00064   KCALUTILS_EXPORT QStringList incidenceSecrecyList();
00065 
00066   KCALUTILS_EXPORT QString incidenceStatus( KCalCore::Incidence::Status status );
00067   KCALUTILS_EXPORT QString incidenceStatus( const KCalCore::Incidence::Ptr &incidence );
00068   KCALUTILS_EXPORT QString scheduleMessageStatus( KCalCore::ScheduleMessage::Status status );
00069 
00075   KCALUTILS_EXPORT QString todoCompletedDateTime( const KCalCore::Todo::Ptr &todo,
00076                                                   bool shortfmt = false );
00077 
00078   KCALUTILS_EXPORT QString attendeeRole( KCalCore::Attendee::Role role );
00079   KCALUTILS_EXPORT QStringList attendeeRoleList();
00080   KCALUTILS_EXPORT QString attendeeStatus( KCalCore::Attendee::PartStat status );
00081   KCALUTILS_EXPORT QStringList attendeeStatusList();
00082 
00090   KCALUTILS_EXPORT QString formatTime( const KDateTime &dt, bool shortfmt = true,
00091                                        const KDateTime::Spec &spec = KDateTime::Spec() );
00092 
00100   KCALUTILS_EXPORT QString formatDate( const KDateTime &dt, bool shortfmt = true,
00101                                        const KDateTime::Spec &spec = KDateTime::Spec() );
00102 
00111   KCALUTILS_EXPORT QString formatDateTime( const KDateTime &dt,
00112                                            bool dateOnly = false,
00113                                            bool shortfmt = true,
00114                                            const KDateTime::Spec &spec = KDateTime::Spec() );
00115 
00119   KCALUTILS_EXPORT QString errorMessage( const KCalCore::Exception &exception );
00120 
00121   KCALUTILS_EXPORT QString secrecyName( KCalCore::Incidence::Secrecy secrecy );
00122 
00123   KCALUTILS_EXPORT QStringList secrecyList();
00124 
00125 } // namespace Stringify
00126 
00127 } //namespace KCalUtils
00128 
00129 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:00 by doxygen 1.7.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.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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