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

ktimetracker

  • sources
  • kde-4.12
  • kdepim
  • ktimetracker
karm.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 by Thorsten Staerk <kde@staerk.de>
3  * 2007 the ktimetracker developers
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the
17  * Free Software Foundation, Inc.
18  * 51 Franklin Street, Fifth Floor
19  * Boston, MA 02110-1301 USA.
20  *
21  */
22 
23 /*
24 This program is here to remind the user that karm is now called ktimetracker.
25 We cannot be sure the user is on a graphical display when starting this,
26 so print out and display a messagebox.
27 We cannot be sure the user is aware the system wants to start karm,
28 so say "someone, probably you, has called karm...".
29 
30 Compile it like this:
31 g++ -I/home/kde-devel/qt-unstable/include/Qt -I/home/kde-devel/qt-unstable/include -I/home/kde-devel/qt-unstable/include/QtCore -I/home/kde-devel/qt-unstable/include/QtGui -I/home/kde-devel/kde/include -lQtCore_debug -L/home/kde-devel/qt-unstable/lib -L/home/kde-devel/kde/lib -lkdeui karm.cpp -o karm
32 */
33 
34 #include <kapplication.h>
35 #include <kaboutdata.h>
36 #include <kmessagebox.h>
37 #include <kcmdlineargs.h>
38 #include <klocale.h> // i18n
39 #include <iostream>
40 
41 using namespace std;
42 
43 int main (int argc, char *argv[])
44 {
45  KAboutData aboutData( "KArmReminder", "ktimetracker", ki18n("KArmReminder"),
46  "1.0", ki18n("KArmReminder"), KAboutData::License_GPL,
47  ki18n("(c) 2006") );
48  KCmdLineArgs::init( argc, argv, &aboutData );
49  KApplication khello;
50  // outputting a string is again something that became complicated
51  // Several languages need 8Bit, ascii() is not enough.
52  cout << i18n("Someone, probably you, has called karm.\n").toLocal8Bit().data();
53  cout << i18n("KArm has been renamed to KTimeTracker. This makes it easier to recognize.\nCompatibility advice: Do not give ktimetracker files to karm users. Using karm files with ktimetracker is possible.\n").toLocal8Bit().data();
54  cout << i18n("Please learn to call ktimetracker as this reminder may be removed in the future.\n").toLocal8Bit().data();
55  KMessageBox::information(0,i18n("Someone, probably you, has called karm. KArm has been renamed to KTimeTracker. This makes it easier to recognize. Compatibility advice: Do not give ktimetracker files to karm users. Using karm files with ktimetracker is possible. Please learn to call ktimetracker as this reminder may be removed in the future."),i18n("KArm is now ktimetracker"));
56 }
main
int main(int argc, char *argv[])
Definition: karm.cpp:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

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

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