KWallet
11#include <KConfigGroup>
12#include <KDBusService>
13#include <KLocalizedString>
15#include <QApplication>
16#include <QCommandLineParser>
18static bool isWalletEnabled()
20 KConfig cfg(QStringLiteral(
"kwalletrc"));
21 KConfigGroup walletGroup(&cfg, QStringLiteral(
"Wallet"));
22 return walletGroup.readEntry(QStringLiteral(
"Enabled"),
true);
25int main(
int argc,
char **argv)
31 KAboutData aboutData(QStringLiteral(
"kwalletd"),
33 QStringLiteral(
"0.1"),
34 i18n(
"A KWallet compatibility service, wrapping upon Secret Service"),
36 i18n(
"(C) 2025, The KDE Developers"));
38 aboutData.addAuthor(
i18n(
"Marco Martin"),
i18n(
"Author"), QStringLiteral(
"notmart@gmail.com"));
39 aboutData.setOrganizationDomain(
"kde.org");
40 aboutData.setDesktopFileName(QStringLiteral(
"org.kde.kwalletd"));
45 aboutData.setupCommandLine(&parser);
48 aboutData.processCommandLine(&parser);
51 if (!isWalletEnabled()) {
52 qCDebug(KWALLETD_LOG) <<
"kwallet is disabled!";
61 return application.exec();
static void setApplicationData(const KAboutData &aboutData)
static void setApplicationDomain(const QByteArray &domain)
QString i18n(const char *text, const TYPE &arg...)
void process(const QCoreApplication &app)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 25 2025 11:53:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.