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

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jean-Baptiste Mardelle <bj@altern.org>
3  * Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014
4  * Rolf Eike Beer <kde@opensource.sf-tec.de>
5  */
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #include "kgpg.h"
17 
18 #include <KAboutData>
19 #include <KCmdLineArgs>
20 #include <KLocale>
21 #include <KUniqueApplication>
22 
23 static const char description[] =
24  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.");
25 
26 static const char version[] = "2.13.1";
27 
28 int main(int argc, char *argv[])
29 {
30  KAboutData about("kgpg", 0, ki18n("KGpg"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2003 Jean-Baptiste Mardelle"), KLocalizedString(), "http://utils.kde.org/projects/kgpg");
31  about.addAuthor(ki18n("Jean-Baptiste Mardelle"), ki18n("Author and former maintainer"), "bj@altern.org");
32  about.addAuthor(ki18n("Jimmy Gilles"), KLocalizedString(), "jimmygilles@gmail.com");
33  about.addAuthor(ki18n("Rolf Eike Beer"), ki18n("Maintainer"), "kde@opensource.sf-tec.de");
34 
35  KCmdLineArgs::init(argc, argv, &about);
36 
37  KCmdLineOptions options;
38  options.add("e", ki18n("Encrypt file"));
39  options.add("k", ki18n("Open key manager"));
40  options.add("d", ki18n("Open editor"));
41  options.add("s", ki18n("Show encrypted file"));
42  options.add("S", ki18n("Sign File"));
43  options.add("V", ki18n("Verify signature"));
44  options.add("+[File]", ki18n("File to open"));
45  KCmdLineArgs::addCmdLineOptions(options);
46  KUniqueApplication::addCmdLineOptions();
47 
48  if (!KUniqueApplication::start())
49  return 0;
50 
51  KApplication *app = new KGpgApp();
52  app->setQuitOnLastWindowClosed(false);
53  return app->exec();
54 }
kgpg.h
KGpgApp
Definition: kgpg.h:42
description
static const char description[]
Definition: main.cpp:23
main
int main(int argc, char *argv[])
Definition: main.cpp:28
version
static const char version[]
Definition: main.cpp:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • 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