Akonadi

selftestdialog.h
1 /*
2  SPDX-FileCopyrightText: 2008 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_SELFTESTDIALOG_P_H
8 #define AKONADI_SELFTESTDIALOG_P_H
9 
10 #include "ui_selftestdialog.h"
11 #include "akonadiwidgets_export.h"
12 #include <QDialog>
13 
14 class QStandardItem;
15 class QStandardItemModel;
16 namespace Akonadi
17 {
28 class AKONADIWIDGETS_EXPORT SelfTestDialog : public QDialog
29 {
30  Q_OBJECT
31 public:
37  explicit SelfTestDialog(QWidget *parent = nullptr);
38 
42  void hideIntroduction();
43 
44 private Q_SLOTS:
45  void selectionChanged(const QModelIndex &index);
46  void saveReport();
47  void copyReport();
48  void linkActivated(const QString &link);
49  void runTests();
50 
51 private:
52  enum ResultType {
53  Skip,
54  Success,
55  Warning,
56  Error
57  };
58  QStandardItem *report(ResultType type, const KLocalizedString &summary, const KLocalizedString &details);
59  QVariant serverSetting(const QString &group, const char *key, const QVariant &def) const;
60  bool useStandaloneMysqlServer() const;
61  bool runProcess(const QString &app, const QStringList &args, QString &result) const;
62 
63  void testSQLDriver();
64  void testMySQLServer();
65  void testMySQLServerLog();
66  void testMySQLServerConfig();
67  void testPSQLServer();
68  void testAkonadiCtl();
69  void testServerStatus();
70  void testProtocolVersion();
71  void testResources();
72  void testServerLog();
73  void testControlLog();
74  void testRootUser();
75 
76  QString createReport();
77 
78  Ui::SelfTestDialog ui;
79  QStandardItemModel *mTestModel = nullptr;
80 };
81 }
82 #endif
Helper integration between Akonadi and Qt.
A dialog that checks the current status of the Akonadi system.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 14 2020 23:16:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.