Akonadi

selftest/main.cpp
1 /*
2  SPDX-FileCopyrightText: 2014 Daniel Vr├ítil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "selftestdialog.h"
8 
9 #include <KAboutData>
10 
11 #include <QApplication>
12 #include <QCommandLineParser>
13 
14 int main(int argc, char *argv[])
15 {
16  QApplication app(argc, argv);
17  QCommandLineParser parser;
18  KAboutData about(QStringLiteral("akonadiselftest"),
19  i18n("Akonadi Self Test"),
20  QStringLiteral("1.0"),
21  i18n("Checks and reports state of Akonadi server"),
23  i18n("(c) 2008 Volker Krause <[email protected]>"));
24  about.setupCommandLine(&parser);
25 
26  QCoreApplication::setApplicationName(QStringLiteral("akonadiselftest"));
27  QCoreApplication::setApplicationVersion(QStringLiteral("1.0"));
28  parser.process(app);
29 
31  dlg.show();
32 
33  return app.exec();
34 }
A dialog that checks the current status of the Akonadi system.
void setApplicationVersion(const QString &version)
QString i18n(const char *text, const TYPE &arg...)
void process(const QStringList &arguments)
void setApplicationName(const QString &application)
void show()
void about(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.