kbugreport.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 1999 David Faure <faure@kde.org> 00003 Copyright (C) 2014 Timothy Pearson <kb9vqf@pearsoncomputing.net> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef _KBUGREPORT_H__ 00021 #define _KBUGREPORT_H__ 00022 00023 #include <kdialogbase.h> 00024 00025 class TQMultiLineEdit; 00026 class TQLineEdit; 00027 class TQHButtonGroup; 00028 class TDEProcess; 00029 class TDEAboutData; 00030 class KBugReportPrivate; 00031 00043 class TDEUI_EXPORT KBugReport : public KDialogBase 00044 { 00045 Q_OBJECT 00046 public: 00053 KBugReport( TQWidget * parent = 0L, bool modal=true, const TDEAboutData *aboutData = 0L ); 00057 virtual ~KBugReport(); 00058 00059 TQString compilerVersion(); 00060 TQString operatingSystem(); 00061 TQString tdeVersion(); 00062 00063 protected slots: 00067 virtual void slotConfigureEmail(); 00072 virtual void slotSetFrom(); 00077 virtual void slotUrlClicked(const TQString &); 00081 virtual void slotOk( void ); 00085 virtual void slotCancel(); 00086 00090 void appChanged(int); 00094 void updateURL(); 00095 00096 protected: 00101 TQString text() const; 00106 bool sendBugReport(); 00107 00108 TDEProcess * m_process; 00109 const TDEAboutData * m_aboutData; 00110 00111 TQMultiLineEdit * m_lineedit; 00112 TQLineEdit * m_subject; 00113 TQLabel * m_from; 00114 TQLabel * m_version; 00115 TQString m_strVersion; 00116 TQHButtonGroup * m_bgSeverity; 00117 TQPushButton * m_configureEmail; 00118 00119 protected: 00120 virtual void virtual_hook( int id, void* data ); 00121 private: 00122 KBugReportPrivate *d; 00123 }; 00124 00125 #endif 00126