korganizer

korganizerifaceimpl.cpp
1/*
2 This file is part of KOrganizer.
3
4 Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20
21 In addition, as a special exception, the copyright holders give
22 permission to link the code of this program with any edition of
23 the TQt library by Trolltech AS, Norway (or with modified versions
24 of TQt that use the same license as TQt), and distribute linked
25 combinations including the two. You must obey the GNU General
26 Public License in all respects for all of the code used other than
27 TQt. If you modify this file, you may extend this exception to
28 your version of the file, but you are not obligated to do so. If
29 you do not wish to do so, delete this exception statement from
30 your version.
31*/
32
33#include "korganizerifaceimpl.h"
34#include "actionmanager.h"
35
36
37KOrganizerIfaceImpl::KOrganizerIfaceImpl( ActionManager* actionManager,
38 TQObject* parent, const char* name )
39 : DCOPObject( "KOrganizerIface" ), TQObject( parent, name ),
40 mActionManager( actionManager )
41{
42}
43
44KOrganizerIfaceImpl::~KOrganizerIfaceImpl()
45{
46}
47
48bool KOrganizerIfaceImpl::openURL( const TQString &url )
49{
50 return mActionManager->openURL( url );
51}
52
53bool KOrganizerIfaceImpl::mergeURL( const TQString &url )
54{
55 return mActionManager->mergeURL( url );
56}
57
58void KOrganizerIfaceImpl::closeURL()
59{
60 return mActionManager->closeURL();
61}
62
63void KOrganizerIfaceImpl::syncAllResources()
64{
65 mActionManager->saveResourceCalendar();
66 mActionManager->loadResourceCalendar();
67}
68
69bool KOrganizerIfaceImpl::saveURL()
70{
71 return mActionManager->saveURL();
72}
73
74bool KOrganizerIfaceImpl::saveAsURL( const TQString &url )
75{
76 return mActionManager->saveAsURL( url );
77}
78
79TQString KOrganizerIfaceImpl::getCurrentURLasString() const
80{
81 return mActionManager->getCurrentURLasString();
82}
83
84bool KOrganizerIfaceImpl::deleteIncidence( const TQString &uid, bool force )
85{
86 return mActionManager->deleteIncidence( uid, force );
87}
88
89bool KOrganizerIfaceImpl::editIncidence( const TQString &uid )
90{
91 return mActionManager->editIncidence( uid );
92}
93
94bool KOrganizerIfaceImpl::editIncidence( const TQString &uid, const TQDate &date )
95{
96 return mActionManager->editIncidence( uid, date );
97}
98
99bool KOrganizerIfaceImpl::addIncidence( const TQString &ical )
100{
101 return mActionManager->addIncidence( ical );
102}
103
104bool KOrganizerIfaceImpl::canQueryClose()
105{
106 return (!(mActionManager->queryClose()));
107}
108
109void KOrganizerIfaceImpl::loadProfile( const TQString& path )
110{
111 mActionManager->loadProfile( path );
112}
113
114void KOrganizerIfaceImpl::saveToProfile( const TQString& path ) const
115{
116 mActionManager->saveToProfile( path );
117}
118
119bool KOrganizerIfaceImpl::handleCommandLine() {
120 return mActionManager->handleCommandLine();
121}
The ActionManager creates all the actions in KOrganizer.
Definition: actionmanager.h:74