KXmlGui

kbugreport.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 1999 David Faure <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KBUGREPORT_H
9 #define KBUGREPORT_H
10 
11 #include <QDialog>
12 #include <kxmlgui_export.h>
13 
14 class KAboutData;
15 class KBugReportPrivate;
16 
32 class KXMLGUI_EXPORT KBugReport : public QDialog
33 {
34  Q_OBJECT
35 
36 public:
43  explicit KBugReport(const KAboutData &aboutData, QWidget *parent = nullptr);
44 
48  ~KBugReport() override;
49 
54  QString messageBody() const;
55 
59  void setMessageBody(const QString &messageBody);
60 
64  void accept() override;
65 
66 private:
70  Q_PRIVATE_SLOT(d, void _k_slotConfigureEmail())
71 
72 
76  Q_PRIVATE_SLOT(d, void _k_slotSetFrom())
77 
78 
81  Q_PRIVATE_SLOT(d, void _k_updateUrl())
82 
83 protected:
88  QString text() const;
89 
94  bool sendBugReport();
95 
96  void closeEvent(QCloseEvent *e) override;
97 
98 private:
99  friend class KBugReportPrivate;
100  KBugReportPrivate *const d;
101 
103 };
104 
105 #endif
106 
virtual void closeEvent(QCloseEvent *e) override
A dialog box for sending bug reports.
Definition: kbugreport.h:32
virtual void accept()
Q_DISABLE_COPY(Class)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 22:50:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.