korganizer

korganizeriface.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library 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 GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 #ifndef KORGANIZERIFACE_H
00021 #define KORGANIZERIFACE_H
00022 
00023 #include <dcopobject.h>
00024 #include <tqdatetime.h>
00025 
00026 class KOrganizerIface : virtual public DCOPObject
00027 {
00028     K_DCOP
00029   k_dcop:
00030     virtual bool openURL(const TQString &url) = 0;
00031     virtual bool mergeURL(const TQString &url) = 0;
00032     virtual void closeURL() = 0;
00033     virtual bool saveURL() = 0;
00034     virtual bool canQueryClose() = 0;
00035     virtual bool saveAsURL(const TQString &url) = 0;
00036     virtual TQString getCurrentURLasString() const = 0;
00037     virtual bool editIncidence(const TQString &uid) = 0;
00038     virtual bool editIncidence( const TQString &uid, const TQDate &date ) = 0;
00039     virtual bool deleteIncidence(const TQString &uid) = 0;
00040     virtual void syncAllResources() = 0;
00047     virtual bool deleteIncidence(const TQString &uid, bool force) = 0;
00056     virtual bool addIncidence(const TQString &iCal) = 0;
00057 
00058     virtual void loadProfile( const TQString& path ) = 0;
00059     virtual void saveToProfile( const TQString& path ) const = 0;
00060 
00066     virtual bool handleCommandLine() = 0;
00067 };
00068 
00069 #endif