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

sweeper

  • sources
  • kde-4.12
  • kdeutils
  • sweeper
main.cpp
Go to the documentation of this file.
1 
19 #include "sweeper.h"
20 
21 #include <kaboutdata.h>
22 #include <kapplication.h>
23 #include <kcmdlineargs.h>
24 #include <klocale.h>
25 
26 int main(int argc, char *argv[])
27 {
28  KAboutData aboutData("sweeper", 0, ki18n("Sweeper"), "1.9",
29  ki18n("Helps clean unwanted traces the user leaves on the system."),
30  KAboutData::License_LGPL, ki18n("(c) 2003-2005, Ralf Hoelzer"), KLocalizedString(),
31  "http://utils.kde.org/projects/sweeper");
32 
33  aboutData.addAuthor(ki18n("Ralf Hoelzer"), ki18n("Original author"), "ralf@well.com");
34  aboutData.addAuthor(ki18n("Brian S. Stephan"), ki18n("Maintainer"), "bssteph@irtonline.org");
35  aboutData.addAuthor(ki18n("Benjamin Meyer"), ki18n("Thumbnail Cache"), "ben+kdeprivacy@meyerhome.net");
36 
37  aboutData.setProgramIconName(QLatin1String( "trash-empty" ));
38 
39  // command line
40  KCmdLineArgs::init(argc, argv, &aboutData);
41  KCmdLineOptions options;
42  options.add("automatic", ki18n("Sweeps without user interaction"));
43  KCmdLineArgs::addCmdLineOptions(options);
44  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
45 
46  // Application
47  KApplication a(true);
48  Sweeper *app;
49  if(args->isSet("automatic")) {
50  app = new Sweeper(true);
51  } else {
52  app = new Sweeper(false);
53  app->show();
54  }
55  return a.exec();
56 }
57 
58 // kate: tab-width 3; indent-mode cstyle; replace-tabs true;
Sweeper
Definition: sweeper.h:32
sweeper.h
main
int main(int argc, char *argv[])
Copyright (C) 2005 Benjamin C Meyer (ben at meyerhome dot net)
Definition: main.cpp:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

sweeper

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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