23 #include "alarmclient.h"
25 #include <tdeapplication.h>
27 #include <kstandarddirs.h>
29 #include <dcopclient.h>
32 AlarmClient::AlarmClient()
34 kdDebug(5850) << "AlarmClient::AlarmClient()" << endl;
37 AlarmClient::~AlarmClient()
43 if ( kapp->dcopClient()->isApplicationRegistered( "korgac" ) ) {
48 TDEGlobal::dirs()->addResourceType( "autostart", "share/autostart");
49 TQString desktopFile = locate( "autostart", "korgac.desktop" );
50 if ( desktopFile.isEmpty() ) {
51 kdWarning() << "Couldn't find autostart/korgac.desktop!" << endl;
55 if ( kapp->startServiceByDesktopPath( desktopFile, TQStringList(), &error ) != 0 )
56 kdWarning() << "Failure starting korgac:" << error << endl;
62 DCOPRef ref( "korgac", "ac" );
virtual void stopDaemon() Stop alarm daemon.
virtual void startDaemon() Start alarm daemon.
|