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 #pragma once
8 
9 #include "akonadiwidgets_export.h"
10 #include "ui_selftestdialog.h"
11 #include <QDialog>
12 
13 class QStandardItem;
14 class QStandardItemModel;
15 namespace Akonadi
16 {
17 /**
18  * @internal
19  *
20  * @short A dialog that checks the current status of the Akonadi system.
21  *
22  * This dialog checks the current status of the Akonadi system and
23  * displays a summary of the checks.
24  *
25  * @author Volker Krause <[email protected]>
26  */
27 class AKONADIWIDGETS_EXPORT SelfTestDialog : public QDialog
28 {
29  Q_OBJECT
30 public:
31  /**
32  * Creates a new self test dialog.
33  *
34  * @param parent The parent widget.
35  */
36  explicit SelfTestDialog(QWidget *parent = nullptr);
37 
38  /**
39  * Hides the label with the introduction message.
40  */
41  void hideIntroduction();
42 
43 private Q_SLOTS:
44  void selectionChanged(const QModelIndex &index);
45  void saveReport();
46  void copyReport();
47  void linkActivated(const QString &link);
48  void runTests();
49 
50 private:
51  enum ResultType {
52  Skip,
53  Success,
54  Warning,
55  Error,
56  };
57  AKONADIWIDGETS_NO_EXPORT QStandardItem *report(ResultType type, const KLocalizedString &summary, const KLocalizedString &details);
58  AKONADIWIDGETS_NO_EXPORT QVariant serverSetting(const QString &group, const char *key, const QVariant &def) const;
59  AKONADIWIDGETS_NO_EXPORT bool useStandaloneMysqlServer() const;
60  AKONADIWIDGETS_NO_EXPORT bool runProcess(const QString &app, const QStringList &args, QString &result) const;
61 
62  AKONADIWIDGETS_NO_EXPORT void testSQLDriver();
63  AKONADIWIDGETS_NO_EXPORT void testMySQLServer();
64  AKONADIWIDGETS_NO_EXPORT void testMySQLServerLog();
65  AKONADIWIDGETS_NO_EXPORT void testMySQLServerConfig();
66  AKONADIWIDGETS_NO_EXPORT void testPSQLServer();
67  AKONADIWIDGETS_NO_EXPORT void testAkonadiCtl();
68  AKONADIWIDGETS_NO_EXPORT void testServerStatus();
69  AKONADIWIDGETS_NO_EXPORT void testProtocolVersion();
70  AKONADIWIDGETS_NO_EXPORT void testResources();
71  AKONADIWIDGETS_NO_EXPORT void testServerLog();
72  AKONADIWIDGETS_NO_EXPORT void testControlLog();
73  AKONADIWIDGETS_NO_EXPORT void testRootUser();
74 
75  AKONADIWIDGETS_NO_EXPORT QString createReport();
76 
77  Ui::SelfTestDialog ui;
78  QStandardItemModel *mTestModel = nullptr;
79 };
80 }
A dialog that checks the current status of the Akonadi system.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jun 4 2023 03:52:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.