korganizer

korganizerifaceimpl.h
1 /*
2  This file is part of KOrganizer
3  Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program 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
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 
19  In addition, as a special exception, the copyright holders give
20  permission to link the code of this program with any edition of
21  the TQt library by Trolltech AS, Norway (or with modified versions
22  of TQt that use the same license as TQt), and distribute linked
23  combinations including the two. You must obey the GNU General
24  Public License in all respects for all of the code used other than
25  TQt. If you modify this file, you may extend this exception to
26  your version of the file, but you are not obligated to do so. If
27  you do not wish to do so, delete this exception statement from
28  your version.
29  */
30 
31 #ifndef KORGANIZER_SHARED_H
32 #define KORGANIZER_SHARED_H
33 
34 #include "korganizeriface.h"
35 
36 #include <tqobject.h>
37 #include <tdemacros.h>
38 
39 class ActionManager;
40 
41 
42 class TDE_EXPORT KOrganizerIfaceImpl : public TQObject, virtual public KOrganizerIface {
43 public:
44  KOrganizerIfaceImpl( ActionManager* mActionManager,
45  TQObject* parent=0, const char* name=0 );
46  ~KOrganizerIfaceImpl();
47 
48  bool openURL( const TQString &url );
49  bool mergeURL( const TQString &url );
50  void closeURL();
51  bool saveURL();
52  bool canQueryClose();
53  bool saveAsURL( const TQString &url );
54  TQString getCurrentURLasString() const;
55  void syncAllResources();
56 
57  bool editIncidence( const TQString &uid );
58  bool editIncidence( const TQString &uid, const TQDate &date );
59 
61  bool deleteIncidence( const TQString &uid ) { return deleteIncidence( uid, false ); }
63  bool deleteIncidence( const TQString &uid, bool force );
64 
66  bool addIncidence( const TQString &iCal );
67 
69  void loadProfile( const TQString& path );
70 
72  void saveToProfile( const TQString& path ) const;
73 
75  bool handleCommandLine();
76 
77 private:
78  ActionManager* mActionManager;
79 };
80 
81 
82 #endif // KORGANIZER_SHARED_H
83 
The ActionManager creates all the actions in KOrganizer.
Definition: actionmanager.h:74