korganizerifaceimpl.cpp
00001 /* 00002 This file is part of KOrganizer. 00003 00004 Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk> 00005 00006 This program 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 program 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., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, 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 TQt library by Trolltech AS, Norway (or with modified versions 00024 of TQt that use the same license as TQt), 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 TQt. 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 00033 #include "korganizerifaceimpl.h" 00034 #include "actionmanager.h" 00035 00036 00037 KOrganizerIfaceImpl::KOrganizerIfaceImpl( ActionManager* actionManager, 00038 TQObject* parent, const char* name ) 00039 : DCOPObject( "KOrganizerIface" ), TQObject( parent, name ), 00040 mActionManager( actionManager ) 00041 { 00042 } 00043 00044 KOrganizerIfaceImpl::~KOrganizerIfaceImpl() 00045 { 00046 } 00047 00048 bool KOrganizerIfaceImpl::openURL( const TQString &url ) 00049 { 00050 return mActionManager->openURL( url ); 00051 } 00052 00053 bool KOrganizerIfaceImpl::mergeURL( const TQString &url ) 00054 { 00055 return mActionManager->mergeURL( url ); 00056 } 00057 00058 void KOrganizerIfaceImpl::closeURL() 00059 { 00060 return mActionManager->closeURL(); 00061 } 00062 00063 void KOrganizerIfaceImpl::syncAllResources() 00064 { 00065 mActionManager->saveResourceCalendar(); 00066 mActionManager->loadResourceCalendar(); 00067 } 00068 00069 bool KOrganizerIfaceImpl::saveURL() 00070 { 00071 return mActionManager->saveURL(); 00072 } 00073 00074 bool KOrganizerIfaceImpl::saveAsURL( const TQString &url ) 00075 { 00076 return mActionManager->saveAsURL( url ); 00077 } 00078 00079 TQString KOrganizerIfaceImpl::getCurrentURLasString() const 00080 { 00081 return mActionManager->getCurrentURLasString(); 00082 } 00083 00084 bool KOrganizerIfaceImpl::deleteIncidence( const TQString &uid, bool force ) 00085 { 00086 return mActionManager->deleteIncidence( uid, force ); 00087 } 00088 00089 bool KOrganizerIfaceImpl::editIncidence( const TQString &uid ) 00090 { 00091 return mActionManager->editIncidence( uid ); 00092 } 00093 00094 bool KOrganizerIfaceImpl::editIncidence( const TQString &uid, const TQDate &date ) 00095 { 00096 return mActionManager->editIncidence( uid, date ); 00097 } 00098 00099 bool KOrganizerIfaceImpl::addIncidence( const TQString &ical ) 00100 { 00101 return mActionManager->addIncidence( ical ); 00102 } 00103 00104 bool KOrganizerIfaceImpl::canQueryClose() 00105 { 00106 return (!(mActionManager->queryClose())); 00107 } 00108 00109 void KOrganizerIfaceImpl::loadProfile( const TQString& path ) 00110 { 00111 mActionManager->loadProfile( path ); 00112 } 00113 00114 void KOrganizerIfaceImpl::saveToProfile( const TQString& path ) const 00115 { 00116 mActionManager->saveToProfile( path ); 00117 } 00118 00119 bool KOrganizerIfaceImpl::handleCommandLine() { 00120 return mActionManager->handleCommandLine(); 00121 }