SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / kleopatra / kleopatra_options.h
blob372be83321df210fd5f8b6763c1755c258b3bc87
1 /*
2 kleopatra_options.h
4 This file is part of Kleopatra, the KDE keymanager
5 Copyright (c) 2015 Intevation GmbH
7 Kleopatra is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 Kleopatra is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 In addition, as a special exception, the copyright holders give
22 permission to link the code of this program with any edition of
23 the Qt library by Trolltech AS, Norway (or with modified versions
24 of Qt that use the same license as Qt), and distribute linked
25 combinations including the two. You must obey the GNU General
26 Public License in all respects for all of the code used other than
27 Qt. If you modify this file, you may extend this exception to
28 your version of the file, but you are not obligated to do so. If
29 you do not wish to do so, delete this exception statement from
30 your version.
32 #ifndef KLEOPATRA_OPTIONS_H
33 #define KLEOPATRA_OPTIONS_H
35 #include "config-kleopatra.h"
37 #include <QCommandLineParser>
38 #include <KLocalizedString>
40 static void kleopatra_options(QCommandLineParser *parser)
42 QList<QCommandLineOption> options;
44 options << QCommandLineOption(QStringList() << QStringLiteral("openpgp")
45 << QStringLiteral("p"),
46 i18n("Use OpenPGP for the following operation"))
47 << QCommandLineOption(QStringList() << QStringLiteral("cms")
48 << QStringLiteral("c"),
49 i18n("Use CMS (X.509, S/MIME) for the following operation"))
50 #ifdef HAVE_USABLE_ASSUAN
51 << QCommandLineOption(QStringLiteral("uiserver-socket"),
52 i18n("Location of the socket the ui server is listening on"),
53 QStringLiteral("argument"))
54 << QCommandLineOption(QStringLiteral("daemon"),
55 i18n("Run UI server only, hide main window"))
56 #endif
57 << QCommandLineOption(QStringList() << QStringLiteral("import-certificate")
58 << QStringLiteral("i"),
59 i18n("Import certificate file(s)"))
60 << QCommandLineOption(QStringList() << QStringLiteral("encrypt")
61 << QStringLiteral("e"),
62 i18n("Encrypt file(s)"))
63 << QCommandLineOption(QStringList() << QStringLiteral("sign")
64 << QStringLiteral("s"),
65 i18n("Sign file(s)"))
66 << QCommandLineOption(QStringList() << QStringLiteral("sign-encrypt")
67 << QStringLiteral("E"),
68 i18n("Sign and/or encrypt file(s)"))
69 << QCommandLineOption(QStringLiteral("encrypt-sign"),
70 i18n("Same as --sign-encrypt, do not use"))
71 << QCommandLineOption(QStringList() << QStringLiteral("decrypt")
72 << QStringLiteral("d"),
73 i18n("Decrypt file(s)"))
74 << QCommandLineOption(QStringList() << QStringLiteral("verify")
75 << QStringLiteral("V"),
76 i18n("Verify file/signature"))
77 << QCommandLineOption(QStringList() << QStringLiteral("decrypt-verify")
78 << QStringLiteral("D"),
79 i18n("Decrypt and/or verify file(s)"))
80 << QCommandLineOption(QStringList() << QStringLiteral("search"),
81 i18n("Search for a certificate on a keyserver"),
82 QStringLiteral("search string"))
83 << QCommandLineOption(QStringList() << QStringLiteral("query")
84 << QStringLiteral("q"),
85 i18nc("If a certificate is already known it shows the certificate details dialog."
86 "Otherwise it brings up the certificate search dialog.",
87 "Show details of a local certificate or search for it on a keyserver"
88 " by fingerprint"),
89 QStringLiteral("fingerprint"))
90 << QCommandLineOption(QStringLiteral("parent-windowid"),
91 i18n("Parent Window Id for dialogs"),
92 QStringLiteral("windowId"));
94 parser->addOptions(options);
95 parser->addVersionOption();
96 parser->addHelpOption();
98 parser->addPositionalArgument(QStringLiteral("files"),
99 i18n("File(s) to process"),
100 QStringLiteral("[files..]"));
102 #endif