korganizer
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 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 00033 #include "korganizerifaceimpl.h" 00034 #include "actionmanager.h" 00035 00036 00037 KOrganizerIfaceImpl::KOrganizerIfaceImpl( ActionManager* actionManager, 00038 QObject* parent, const char* name ) 00039 : DCOPObject( "KOrganizerIface" ), QObject( parent, name ), 00040 mActionManager( actionManager ) 00041 { 00042 } 00043 00044 KOrganizerIfaceImpl::~KOrganizerIfaceImpl() 00045 { 00046 } 00047 00048 bool KOrganizerIfaceImpl::openURL( const QString &url ) 00049 { 00050 return mActionManager->openURL( url ); 00051 } 00052 00053 bool KOrganizerIfaceImpl::mergeURL( const QString &url ) 00054 { 00055 return mActionManager->mergeURL( url ); 00056 } 00057 00058 void KOrganizerIfaceImpl::closeURL() 00059 { 00060 return mActionManager->closeURL(); 00061 } 00062 00063 bool KOrganizerIfaceImpl::saveURL() 00064 { 00065 return mActionManager->saveURL(); 00066 } 00067 00068 bool KOrganizerIfaceImpl::saveAsURL( const QString &url ) 00069 { 00070 return mActionManager->saveAsURL( url ); 00071 } 00072 00073 QString KOrganizerIfaceImpl::getCurrentURLasString() const 00074 { 00075 return mActionManager->getCurrentURLasString(); 00076 } 00077 00078 bool KOrganizerIfaceImpl::deleteIncidence( const QString &uid, bool force ) 00079 { 00080 return mActionManager->deleteIncidence( uid, force ); 00081 } 00082 00083 bool KOrganizerIfaceImpl::editIncidence( const QString &uid ) 00084 { 00085 return mActionManager->editIncidence( uid ); 00086 } 00087 00088 bool KOrganizerIfaceImpl::addIncidence( const QString &ical ) 00089 { 00090 return mActionManager->addIncidence( ical ); 00091 }