22 #include "korg_uniqueapp.h"
23 #include "../../korganizer/korganizer_options.h"
27 #include <tdeapplication.h>
28 #include <tdestartupinfo.h>
31 void KOrganizerUniqueAppHandler::loadCommandLineOptions()
33 TDECmdLineArgs::addCmdLineOptions( korganizer_options );
36 int KOrganizerUniqueAppHandler::newInstance()
39 (void)plugin()->part();
40 DCOPRef korganizer( "korganizer", "KOrganizerIface" );
41 korganizer.send( "handleCommandLine" );
45 if ( kapp->mainWidget() ) {
46 kapp->mainWidget()->show();
47 KWin::forceActiveWindow( kapp->mainWidget()->winId() );
48 TDEStartupInfo::appStarted();
57 plugin()->core()->selectPlugin( "kontact_korganizerplugin" );
|