KCalUtils Library
stringify.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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 }
00126
00127 }
00128
00129 #endif