Akonadi

selftest/main.cpp
1 /*
2  Copyright (c) 2014 Daniel Vrátil <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #include "selftestdialog.h"
21 
22 #include <KAboutData>
23 
24 #include <QApplication>
25 #include <QCommandLineParser>
26 
27 int main(int argc, char *argv[])
28 {
29  QApplication app(argc, argv);
30  QCommandLineParser parser;
31  KAboutData about(QStringLiteral("akonadiselftest"),
32  i18n("Akonadi Self Test"),
33  QStringLiteral("1.0"),
34  i18n("Checks and reports state of Akonadi server"),
35  KAboutLicense::GPL_V2,
36  i18n("(c) 2008 Volker Krause <[email protected]>"));
37  about.setupCommandLine(&parser);
38 
39  QCoreApplication::setApplicationName(QStringLiteral("akonadiselftest"));
40  QCoreApplication::setApplicationVersion(QStringLiteral("1.0"));
41  parser.process(app);
42 
44  dlg.show();
45 
46  return app.exec();
47 }
void about(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
void setApplicationVersion(const QString &version)
void process(const QStringList &arguments)
QString i18n(const char *text, const TYPE &arg...)
A dialog that checks the current status of the Akonadi system.
void show()
void setApplicationName(const QString &application)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:08:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.