4#include <QCommandLineOption>
8static QCommandLineOption hash()
10 static QCommandLineOption o{QStringLiteral(
"hash"),
11 i18nc(
"Do not translate <path>",
"Generate a SHA1 hash for the package at <path>"),
12 QStringLiteral(
"path")};
15static QCommandLineOption global()
17 static QCommandLineOption o{QStringList{QStringLiteral(
"g"), QStringLiteral(
"global")},
18 i18n(
"For install or remove, operates on packages installed for all users.")};
21static QCommandLineOption type()
23 static QCommandLineOption o{QStringList{QStringLiteral(
"t"), QStringLiteral(
"type")},
24 i18nc(
"theme, wallpaper, etc. are keywords, but they may be translated, as both versions "
25 "are recognized by the application "
26 "(if translated, should be same as messages with 'package type' context below)",
27 "The type of package, corresponding to the service type of the package plugin, e.g. KPackage/Generic, Plasma/Theme, "
28 "Plasma/Wallpaper, Plasma/Applet, etc."),
29 QStringLiteral(
"type"),
30 QStringLiteral(
"KPackage/Generic")};
33static QCommandLineOption install()
35 static QCommandLineOption o{QStringList{QStringLiteral(
"i"), QStringLiteral(
"install")},
36 i18nc(
"Do not translate <path>",
"Install the package at <path>"),
37 QStringLiteral(
"path")};
40static QCommandLineOption show()
42 static QCommandLineOption o{QStringList{QStringLiteral(
"s"), QStringLiteral(
"show")},
43 i18nc(
"Do not translate <name>",
"Show information of package <name>"),
44 QStringLiteral(
"name")};
47static QCommandLineOption upgrade()
49 static QCommandLineOption o{QStringList{QStringLiteral(
"u"), QStringLiteral(
"upgrade")},
50 i18nc(
"Do not translate <path>",
"Upgrade the package at <path>"),
51 QStringLiteral(
"path")};
54static QCommandLineOption list()
56 static QCommandLineOption o{QStringList{QStringLiteral(
"l"), QStringLiteral(
"list")},
i18n(
"List installed packages")};
59static QCommandLineOption listTypes()
61 static QCommandLineOption o{QStringList{QStringLiteral(
"list-types")},
i18n(
"List all known package types that can be installed")};
64static QCommandLineOption remove()
66 static QCommandLineOption o{QStringList{QStringLiteral(
"r"), QStringLiteral(
"remove")},
67 i18nc(
"Do not translate <name>",
"Remove the package named <name>"),
68 QStringLiteral(
"name")};
71static QCommandLineOption packageRoot()
73 static QCommandLineOption o{QStringList{QStringLiteral(
"p"), QStringLiteral(
"packageroot")},
74 i18n(
"Absolute path to the package root. If not supplied, then the standard data"
75 " directories for this KDE session will be searched instead."),
76 QStringLiteral(
"path")};
79static QCommandLineOption appstream()
81 static QCommandLineOption o{QStringLiteral(
"appstream-metainfo"),
82 i18nc(
"Do not translate <path>",
"Outputs the metadata for the package <path>"),
83 QStringLiteral(
"path")};
86static QCommandLineOption appstreamOutput()
88 static QCommandLineOption o{QStringLiteral(
"appstream-metainfo-output"),
89 i18nc(
"Do not translate <path>",
"Outputs the metadata for the package into <path>"),
90 QStringLiteral(
"path")};
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)