korganizer

korganizerifaceimpl.h

00001 /*
00002     This file is part of KOrganizer
00003     Copyright (c) 2004  Bo Thorsen <bo@sonofthor.dk>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU 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 KORGANIZER_SHARED_H
00032 #define KORGANIZER_SHARED_H
00033 
00034 #include "korganizeriface.h"
00035 
00036 #include <qobject.h>
00037 #include <kdepimmacros.h>
00038 
00039 class ActionManager;
00040 
00041 
00042 class KDE_EXPORT KOrganizerIfaceImpl : public QObject, virtual public KOrganizerIface {
00043 public:
00044   KOrganizerIfaceImpl( ActionManager* mActionManager,
00045                        QObject* parent=0, const char* name=0 );
00046   ~KOrganizerIfaceImpl();
00047 
00048   bool openURL( const QString &url );
00049   bool mergeURL( const QString &url );
00050   void closeURL();
00051   bool saveURL();
00052   bool saveAsURL( const QString &url );
00053   QString getCurrentURLasString() const;
00054 
00055   bool editIncidence( const QString &uid );
00057   bool deleteIncidence( const QString &uid )  { return deleteIncidence( uid, false ); }
00059   bool deleteIncidence( const QString &uid, bool force );
00060 
00062   bool addIncidence( const QString &iCal );
00063 
00064 private:
00065   ActionManager* mActionManager;
00066 };
00067 
00068 
00069 #endif // KORGANIZER_SHARED_H
00070 
KDE Home | KDE Accessibility Home | Description of Access Keys