KDEUI
kbugreport.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 1999 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 #ifndef KBUGREPORT_H 00020 #define KBUGREPORT_H 00021 00022 #include <kdialog.h> 00023 00024 class KAboutData; 00025 class KBugReportPrivate; 00026 00040 class KDEUI_EXPORT KBugReport : public KDialog 00041 { 00042 Q_OBJECT 00043 00044 public: 00051 // ###KDE5: remove modal argument 00052 explicit KBugReport(QWidget *parent = 0L, bool modal=true, const KAboutData *aboutData = 0L); 00053 00057 virtual ~KBugReport(); 00058 00063 QString messageBody() const; 00064 00068 void setMessageBody(const QString &messageBody); 00069 00073 virtual void accept(); 00074 00075 private: 00079 Q_PRIVATE_SLOT(d, void _k_slotConfigureEmail()) 00080 00081 00085 Q_PRIVATE_SLOT(d, void _k_slotSetFrom()) 00086 00087 00090 Q_PRIVATE_SLOT(d, void _k_appChanged(int)) 00091 00092 00095 Q_PRIVATE_SLOT(d, void _k_updateUrl()) 00096 00097 protected: 00102 QString text() const; 00103 00108 bool sendBugReport(); 00109 00110 virtual void closeEvent(QCloseEvent *e); 00111 00112 private: 00113 friend class KBugReportPrivate; 00114 KBugReportPrivate *const d; 00115 00116 Q_DISABLE_COPY(KBugReport) 00117 }; 00118 00119 #endif 00120
KDE 4.6 API Reference