• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

korgac

  • sources
  • kde-4.12
  • kdepim
  • korgac
korgacmain.cpp
Go to the documentation of this file.
1 /*
2  This file is part of the KDE reminder agent.
3 
4  Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (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
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #include "koalarmclient.h"
26 #include "kdepim-version.h"
27 
28 #include <KAboutData>
29 #include <KCmdLineArgs>
30 #include <KUniqueApplication>
31 
32 #include <stdlib.h>
33 
34 #ifdef SERIALIZER_PLUGIN_STATIC
35 #include <QtPlugin>
36 
37 Q_IMPORT_PLUGIN(akonadi_serializer_kcalcore)
38 #endif
39 
40 class ReminderDaemonApp : public KUniqueApplication
41 {
42  public:
43  ReminderDaemonApp() : mClient( 0 )
44  {
45  // ensure the Quit dialog's Cancel response does not close the app
46  setQuitOnLastWindowClosed( false );
47  }
48 
49  int newInstance()
50  {
51  // Check if we already have a running alarm daemon widget
52  if ( mClient ) {
53  return 0;
54  }
55 
56  mClient = new KOAlarmClient;
57 
58  return 0;
59  }
60 
61  private:
62  KOAlarmClient *mClient;
63 };
64 
65 static const char korgacVersion[] = KDEPIM_VERSION;
66 
67 int main( int argc, char **argv )
68 {
69  KAboutData aboutData( "korgac", QByteArray(), ki18n( "KOrganizer Reminder Daemon" ),
70  korgacVersion, ki18n( "KOrganizer Reminder Daemon" ),
71  KAboutData::License_GPL,
72  ki18n( "(c) 2003 Cornelius Schumacher" ),
73  KLocalizedString(), "http://pim.kde.org" );
74  aboutData.addAuthor( ki18n( "Cornelius Schumacher" ), ki18n( "Former Maintainer" ),
75  "schumacher@kde.org" );
76  aboutData.addAuthor( ki18n( "Reinhold Kainhofer" ), ki18n ( "Former Maintainer" ),
77  "kainhofer@kde.org" );
78  aboutData.addAuthor( ki18n( "Allen Winter" ),ki18n( "Janitorial Staff" ),
79  "winter@kde.org" );
80 
81  KCmdLineArgs::init( argc, argv, &aboutData );
82 
83  KCmdLineOptions options;
84  KCmdLineArgs::addCmdLineOptions( options );
85  KUniqueApplication::addCmdLineOptions();
86 
87  if ( !ReminderDaemonApp::start() ) {
88  exit( 0 );
89  }
90 
91  ReminderDaemonApp app;
92 #if !defined(Q_WS_WINCE)
93  app.disableSessionManagement();
94 #endif
95 
96  return app.exec();
97 }
main
int main(int argc, char **argv)
Definition: korgacmain.cpp:67
korgacVersion
static const char korgacVersion[]
Definition: korgacmain.cpp:65
KOAlarmClient
Definition: koalarmclient.h:45
koalarmclient.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korgac

Skip menu "korgac"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal