kbugreport.h
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 <kdialogbase.h> 00023 00024 class QMultiLineEdit; 00025 class QLineEdit; 00026 class QHButtonGroup; 00027 class KProcess; 00028 class KAboutData; 00029 class KBugReportPrivate; 00030 00042 class KDEUI_EXPORT KBugReport : public KDialogBase 00043 { 00044 Q_OBJECT 00045 public: 00052 KBugReport( QWidget * parent = 0L, bool modal=true, const KAboutData *aboutData = 0L ); 00056 virtual ~KBugReport(); 00057 00058 protected slots: 00062 virtual void slotConfigureEmail(); 00067 virtual void slotSetFrom(); 00072 virtual void slotUrlClicked(const QString &); 00076 virtual void slotOk( void ); 00080 virtual void slotCancel(); 00081 00085 void appChanged(int); 00089 void updateURL(); 00090 00091 protected: 00096 QString text() const; 00101 bool sendBugReport(); 00102 00103 KProcess * m_process; 00104 const KAboutData * m_aboutData; 00105 00106 QMultiLineEdit * m_lineedit; 00107 QLineEdit * m_subject; 00108 QLabel * m_from; 00109 QLabel * m_version; 00110 QString m_strVersion; 00111 QHButtonGroup * m_bgSeverity; 00112 QPushButton * m_configureEmail; 00113 00114 protected: 00115 virtual void virtual_hook( int id, void* data ); 00116 private: 00117 KBugReportPrivate *d; 00118 }; 00119 00120 #endif 00121