kmail
groupware_types.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
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef KMAIL_GROUPWARETYPES_H
00032 #define KMAIL_GROUPWARETYPES_H
00033
00034 #include <QMetaType>
00035
00036 #define KMAIL_DBUS_SERVICE "org.kde.kmail"
00037 #define KMAIL_DBUS_GROUPWARE_PATH "/Groupware"
00038 #define KMAIL_DBUS_GROUPWARE_INTERFACE "org.kde.kmail.groupware"
00039
00040 namespace KMail {
00041
00042 struct SubResource {
00043 SubResource() {
00044 writable=false;
00045 alarmRelevant=false;
00046 }
00047 SubResource( const QString& loc, const QString& lab, bool rw, bool ar )
00048 : location( loc ), label( lab ), writable( rw ), alarmRelevant( ar ) {}
00049 QString location;
00050 QString label;
00051 bool writable;
00052 bool alarmRelevant;
00053
00054 typedef QList<SubResource> List;
00055 };
00056
00062 enum StorageFormat { StorageIcalVcard, StorageXML };
00063
00065 enum FolderChanges { NoChange = 0, ContentsChanged = 1, ACLChanged = 2 };
00066
00068 struct CustomHeader
00069 {
00070 CustomHeader() {}
00071 CustomHeader( const QByteArray &n, const QString &v ) :
00072 name( n ), value( v ) {}
00073
00074 QByteArray name;
00075 QString value;
00076
00077 typedef QList<CustomHeader> List;
00078 };
00079
00081 struct SernumDataPair
00082 {
00083 SernumDataPair() {}
00084 SernumDataPair( quint32 n, const QString &d ) :
00085 sernum( n ), data( d ) {}
00086 quint32 sernum;
00087 QString data;
00088
00089 typedef QList<SernumDataPair> List;
00090 };
00091
00095 void registerGroupwareTypes();
00096 }
00097
00098 typedef QMap<quint32, QString> Quint32QStringMap;
00099
00100 Q_DECLARE_METATYPE( KMail::SubResource )
00101 Q_DECLARE_METATYPE( KMail::SubResource::List )
00102 Q_DECLARE_METATYPE( Quint32QStringMap )
00103 Q_DECLARE_METATYPE( KMail::CustomHeader )
00104 Q_DECLARE_METATYPE( KMail::CustomHeader::List )
00105 Q_DECLARE_METATYPE( KMail::SernumDataPair )
00106 Q_DECLARE_METATYPE( KMail::SernumDataPair::List )
00107
00108 #endif