kmail Library API Documentation

kmailicalIface.h

00001 /*
00002     This file is part of KMail.
00003     Copyright (c) 2003 Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
00004     Copyright (c) 2003 - 2004 Bo Thorsen <bo@sonofthor.dk>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA 02111-1307, USA.
00020 
00021     In addition, as a special exception, the copyright holders give
00022     permission to link the code of this program with any edition of
00023     the Qt library by Trolltech AS, Norway (or with modified versions
00024     of Qt that use the same license as Qt), and distribute linked
00025     combinations including the two.  You must obey the GNU General
00026     Public License in all respects for all of the code used other than
00027     Qt.  If you modify this file, you may extend this exception to
00028     your version of the file, but you are not obligated to do so.  If
00029     you do not wish to do so, delete this exception statement from
00030     your version.
00031 */
00032 #ifndef KMAILICALIFACE_H
00033 #define KMAILICALIFACE_H
00034 
00035 #include <dcopobject.h>
00036 #include <qstringlist.h>
00037 
00038 class KMailICalIface : virtual public DCOPObject
00039 {
00040   K_DCOP
00041 k_dcop:
00042   virtual bool addIncidence( const QString& type, const QString& folder,
00043                              const QString& uid, const QString& ical ) = 0;
00044   virtual bool deleteIncidence( const QString& type, const QString& folder,
00045                                 const QString& uid ) = 0;
00046   virtual QStringList incidences( const QString& type,
00047                                   const QString& folder ) = 0;
00048   virtual QStringList subresources( const QString& type ) = 0;
00049   virtual bool isWritableFolder( const QString& type,
00050                                  const QString& resource ) = 0;
00051 
00052   // This saves the iCals/vCards in the entries in the folder.
00053   // The format in the string list is uid, entry, uid, entry...
00054   virtual bool update( const QString& type, const QString& folder,
00055                        const QStringList& entries ) = 0;
00056 
00057   // Update a single entry in the storage layer
00058   virtual bool update( const QString& type, const QString& folder,
00059                        const QString& uid, const QString& entry ) = 0;
00060 
00061 k_dcop_signals:
00062   void incidenceAdded( const QString& type, const QString& folder,
00063                        const QString& entry );
00064   void incidenceDeleted( const QString& type, const QString& folder,
00065                          const QString& uid );
00066   void signalRefresh( const QString& type, const QString& folder );
00067   void subresourceAdded( const QString& type, const QString& resource );
00068   void subresourceDeleted( const QString& type, const QString& resource );
00069   void asyncLoadResult( const QStringList& list, const QString& type,
00070                         const QString& folder );
00071 };
00072 
00073 #endif
KDE Logo
This file is part of the documentation for kmail Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:43:42 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003