33 #include "korganizerifaceimpl.h"
34 #include "actionmanager.h"
37 KOrganizerIfaceImpl::KOrganizerIfaceImpl(
ActionManager* actionManager,
38 TQObject* parent,
const char* name )
39 : DCOPObject(
"KOrganizerIface" ), TQObject( parent, name ),
40 mActionManager( actionManager )
44 KOrganizerIfaceImpl::~KOrganizerIfaceImpl()
48 bool KOrganizerIfaceImpl::openURL(
const TQString &url )
50 return mActionManager->openURL( url );
53 bool KOrganizerIfaceImpl::mergeURL(
const TQString &url )
55 return mActionManager->mergeURL( url );
58 void KOrganizerIfaceImpl::closeURL()
60 return mActionManager->closeURL();
63 void KOrganizerIfaceImpl::syncAllResources()
65 mActionManager->saveResourceCalendar();
66 mActionManager->loadResourceCalendar();
69 bool KOrganizerIfaceImpl::saveURL()
71 return mActionManager->saveURL();
74 bool KOrganizerIfaceImpl::saveAsURL(
const TQString &url )
76 return mActionManager->saveAsURL( url );
79 TQString KOrganizerIfaceImpl::getCurrentURLasString()
const
81 return mActionManager->getCurrentURLasString();
84 bool KOrganizerIfaceImpl::deleteIncidence(
const TQString &uid,
bool force )
86 return mActionManager->deleteIncidence( uid, force );
89 bool KOrganizerIfaceImpl::editIncidence(
const TQString &uid )
91 return mActionManager->editIncidence( uid );
94 bool KOrganizerIfaceImpl::editIncidence(
const TQString &uid,
const TQDate &date )
96 return mActionManager->editIncidence( uid, date );
99 bool KOrganizerIfaceImpl::addIncidence(
const TQString &ical )
101 return mActionManager->addIncidence( ical );
104 bool KOrganizerIfaceImpl::canQueryClose()
106 return (!(mActionManager->queryClose()));
109 void KOrganizerIfaceImpl::loadProfile(
const TQString& path )
111 mActionManager->loadProfile( path );
114 void KOrganizerIfaceImpl::saveToProfile(
const TQString& path )
const
116 mActionManager->saveToProfile( path );
119 bool KOrganizerIfaceImpl::handleCommandLine() {
120 return mActionManager->handleCommandLine();
The ActionManager creates all the actions in KOrganizer.