• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

groupware_types.h

Go to the documentation of this file.
00001 /*  -*- mode: C++; c-file-style: "gnu" -*-
00002  *
00003  *  This file is part of KMail, the KDE mail client.
00004  *  Copyright (c) 2007 Montel Laurent <montel@kde.org>
00005  *
00006  *  KMail is free software; you can redistribute it and/or modify it
00007  *  under the terms of the GNU General Public License, version 2, as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  KMail is distributed in the hope that it will be useful, but
00011  *  WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018  *
00019  *  In addition, as a special exception, the copyright holders give
00020  *  permission to link the code of this program with any edition of
00021  *  the Qt library by Trolltech AS, Norway (or with modified versions
00022  *  of Qt that use the same license as Qt), and distribute linked
00023  *  combinations including the two.  You must obey the GNU General
00024  *  Public License in all respects for all of the code used other than
00025  *  Qt.  If you modify this file, you may extend this exception to
00026  *  your version of the file, but you are not obligated to do so.  If
00027  *  you do not wish to do so, delete this exception statement from
00028  *  your version.
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; // unique
00050     QString label;    // shown to the user
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

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal