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 TQt library by Trolltech AS, Norway (or with modified versions 00022 of TQt that use the same license as TQt), 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 TQt. 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 <tqobject.h> 00037 #include <tdepimmacros.h> 00038 00039 class ActionManager; 00040 00041 00042 class KDE_EXPORT KOrganizerIfaceImpl : public TQObject, virtual public KOrganizerIface { 00043 public: 00044 KOrganizerIfaceImpl( ActionManager* mActionManager, 00045 TQObject* parent=0, const char* name=0 ); 00046 ~KOrganizerIfaceImpl(); 00047 00048 bool openURL( const TQString &url ); 00049 bool mergeURL( const TQString &url ); 00050 void closeURL(); 00051 bool saveURL(); 00052 bool canQueryClose(); 00053 bool saveAsURL( const TQString &url ); 00054 TQString getCurrentURLasString() const; 00055 void syncAllResources(); 00056 00057 bool editIncidence( const TQString &uid ); 00058 bool editIncidence( const TQString &uid, const TQDate &date ); 00059 00061 bool deleteIncidence( const TQString &uid ) { return deleteIncidence( uid, false ); } 00063 bool deleteIncidence( const TQString &uid, bool force ); 00064 00066 bool addIncidence( const TQString &iCal ); 00067 00069 void loadProfile( const TQString& path ); 00070 00072 void saveToProfile( const TQString& path ) const; 00073 00075 bool handleCommandLine(); 00076 00077 private: 00078 ActionManager* mActionManager; 00079 }; 00080 00081 00082 #endif // KORGANIZER_SHARED_H 00083