korganizer

korganizeriface.h
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef KORGANIZERIFACE_H
21 #define KORGANIZERIFACE_H
22 
23 #include <dcopobject.h>
24 #include <tqdatetime.h>
25 
26 class KOrganizerIface : virtual public DCOPObject
27 {
28  K_DCOP
29  k_dcop:
30  virtual bool openURL(const TQString &url) = 0;
31  virtual bool mergeURL(const TQString &url) = 0;
32  virtual void closeURL() = 0;
33  virtual bool saveURL() = 0;
34  virtual bool canQueryClose() = 0;
35  virtual bool saveAsURL(const TQString &url) = 0;
36  virtual TQString getCurrentURLasString() const = 0;
37  virtual bool editIncidence(const TQString &uid) = 0;
38  virtual bool editIncidence( const TQString &uid, const TQDate &date ) = 0;
39  virtual bool deleteIncidence(const TQString &uid) = 0;
40  virtual void syncAllResources() = 0;
47  virtual bool deleteIncidence(const TQString &uid, bool force) = 0;
56  virtual bool addIncidence(const TQString &iCal) = 0;
57 
58  virtual void loadProfile( const TQString& path ) = 0;
59  virtual void saveToProfile( const TQString& path ) const = 0;
60 
66  virtual bool handleCommandLine() = 0;
67 };
68 
69 #endif