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

kgpg

main.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           main.cpp  -  description
00003                              -------------------
00004     begin                : Mon Jul 8 2002
00005     copyright          : (C) 2002 by Jean-Baptiste Mardelle
00006     email                : bj@altern.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 
00019 
00020 #include <KUniqueApplication>
00021 #include <KCmdLineArgs>
00022 #include <KAboutData>
00023 #include <KLocale>
00024 
00025 #include "kgpg.h"
00026 
00027 static const char description[] =
00028         I18N_NOOP("KGpg - simple gui for gpg\n\nKGpg was designed to make gpg very easy to use.\nI tried to make it as secure as possible.\nHope you enjoy it.");
00029 
00030 static const char version[] = "1.7.3";
00031 
00032 int main(int argc, char *argv[])
00033 {
00034     KAboutData about("kgpg", 0, ki18n("KGpg"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2003 Jean-Baptiste Mardelle"));
00035     about.addAuthor(ki18n("Jean-Baptiste Mardelle"), KLocalizedString(), "bj@altern.org");
00036     about.addAuthor(ki18n("Jimmy Gilles"), KLocalizedString(), "jimmygilles@gmail.com");
00037     about.addAuthor(ki18n("Rolf Eike Beer"), KLocalizedString(), "kde@opensource.sf-tec.de");
00038 
00039     KCmdLineArgs::init(argc, argv, &about);
00040 
00041     KCmdLineOptions options;
00042     options.add("e", ki18n("Encrypt file"));
00043     options.add("k", ki18n("Open key manager"));
00044     options.add("d", ki18n("Open editor"));
00045     options.add("s", ki18n("Show encrypted file"));
00046     options.add("S", ki18n("Sign file"));
00047     options.add("V", ki18n("Verify signature"));
00048     options.add("X", ki18n("Shred file"));
00049     options.add("+[File]", ki18n("File to open"));
00050     KCmdLineArgs::addCmdLineOptions(options);
00051     KUniqueApplication::addCmdLineOptions();
00052 
00053     if (!KUniqueApplication::start())
00054         return 0;
00055 
00056     //KgpgAppletApp *app;
00057     KApplication *app;
00058     app = new KgpgAppletApp;
00059     return app->exec();
00060 
00061     /*
00062     KUniqueApplication app;
00063 
00064     // register ourselves as a dcop client
00065     // app.dcopClient()->registerAs(app.name(), false);
00066 
00067     kgpgapplet widget;// = new kgpgapplet("kgpg");
00068     widget.show();
00069     return app.exec();
00070     */
00071 }

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
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