• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

main.cpp

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2006-2007 Aaron Seigo <aseigo@kde.org>
00003  *   Copyright 2008 Chani Armitage <chanika@gmail.com>
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as
00007  *   published by the Free Software Foundation; either version 2,
00008  *   or (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details
00014  *
00015  *   You should have received a copy of the GNU Library General Public
00016  *   License along with this program; if not, write to the
00017  *   Free Software Foundation, Inc.,
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 #include <KAboutData>
00022 #include <KCmdLineArgs>
00023 #include <KLocale>
00024 #include <KIcon>
00025 
00026 #include <config-workspace.h>
00027 #include "plasmaapp.h"
00028 
00029 static const char description[] = I18N_NOOP( "Plasma widgets over the screensaver" );
00030 static const char version[] = "0.0";
00031 
00032 //extern "C"
00033 int main(int argc, char **argv)
00034 {
00035     KAboutData aboutData("plasma-overlay",0 , ki18n("Plasma for the Screensaver"),
00036                          version, ki18n(description), KAboutData::License_GPL,
00037                          ki18n("Copyright 2006-2008, The KDE Team"));
00038     aboutData.addAuthor(ki18n("Chani Armitage"),
00039                         ki18n("Author and maintainer"),
00040                         "chanika@gmail.com");
00041     aboutData.addAuthor(ki18n("Aaron J. Seigo"),
00042                         ki18n("Plasma Author and maintainer"),
00043                         "aseigo@kde.org");
00044     aboutData.addCredit(ki18n("John Lions"),
00045                         ki18n("In memory of his contributions, 1937-1998."),
00046                         0, "http://en.wikipedia.org/wiki/John_Lions");
00047 
00048     KCmdLineArgs::init(argc, argv, &aboutData);
00049 
00050     KCmdLineOptions options;
00051     options.add("cheats",ki18n("Enables some cheats that are useful for debugging."));
00052     options.add("setup",ki18n("Start unlocked for configuration."));
00053     KCmdLineArgs::addCmdLineOptions(options);
00054 
00055     PlasmaApp *app = PlasmaApp::self();
00056     QApplication::setWindowIcon(KIcon("plasma"));
00057     app->disableSessionManagement(); // I assume we'd never want a screensaver thing reppearing on login?
00058     int rc = app->exec();
00059     delete app;
00060     return rc;
00061 }

Plasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal