kgpg
main.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00057 KApplication *app;
00058 app = new KgpgAppletApp;
00059 return app->exec();
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 }