.TH "KBugReport" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KBugReport \- A dialog box for sending bug reports.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kbugreport.h>\fP
.PP
Inherits \fBKDialogBase\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKBugReport\fP (\fBQWidget\fP *parent=0L, bool modal=true, const \fBKAboutData\fP *aboutData=0L)"
.br
.ti -1c
.RI "virtual \fB~KBugReport\fP ()"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBslotConfigureEmail\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotSetFrom\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotUrlClicked\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "virtual void \fBslotOk\fP (void)"
.br
.ti -1c
.RI "virtual void \fBslotCancel\fP ()"
.br
.ti -1c
.RI "void \fBappChanged\fP (int)"
.br
.ti -1c
.RI "void \fBupdateURL\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBtext\fP () const "
.br
.ti -1c
.RI "bool \fBsendBugReport\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKProcess\fP * \fBm_process\fP"
.br
.ti -1c
.RI "const \fBKAboutData\fP * \fBm_aboutData\fP"
.br
.ti -1c
.RI "\fBQMultiLineEdit\fP * \fBm_lineedit\fP"
.br
.ti -1c
.RI "\fBQLineEdit\fP * \fBm_subject\fP"
.br
.ti -1c
.RI "\fBQLabel\fP * \fBm_from\fP"
.br
.ti -1c
.RI "\fBQLabel\fP * \fBm_version\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_strVersion\fP"
.br
.ti -1c
.RI "\fBQHButtonGroup\fP * \fBm_bgSeverity\fP"
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBm_configureEmail\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A dialog box for sending bug reports. 

All the information needed by the dialog box (program name, version, bug-report address, etc.) comes from the \fBKAboutData\fP class. Make sure you create an instance of \fBKAboutData\fP and pass it to \fBKCmdLineArgs\fP.
.PP
\fBAuthor:\fP
.RS 4
David Faure <faure@kde.org> 
.RE
.PP

.PP
Definition at line 42 of file kbugreport.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KBugReport::KBugReport (\fBQWidget\fP * parent = \fC0L\fP, bool modal = \fCtrue\fP, const \fBKAboutData\fP * aboutData = \fC0L\fP)"
.PP
Creates a bug-report dialog. 
.PP
Note that you shouldn't have to do this manually, since \fBKHelpMenu\fP takes care of the menu item for 'Report Bug...' and of creating a KBugReport dialog. 
.PP
Definition at line 68 of file kbugreport.cpp.
.PP
References KInstance::aboutData(), QWhatsThis::add(), QGridLayout::addMultiCellWidget(), QGridLayout::addWidget(), appChanged(), KAboutData::bugAddress(), QString::fromLatin1(), KGlobal::instance(), KDialogBase::plainPage(), KAboutData::productName(), QLabel::setBuddy(), KDialogBase::setButtonCancel(), KDialogBase::setButtonOK(), QRadioButton::setChecked(), QGridLayout::setColStretch(), KDialogBase::showButtonOK(), slotConfigureEmail(), slotOk(), slotSetFrom(), KDialog::spacingHint(), text(), updateURL(), and KAboutData::version().
.SS "KBugReport::~\fBKBugReport\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Definition at line 271 of file kbugreport.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KBugReport::slotConfigureEmail ()\fC [protected, virtual, slot]\fP"
.PP
'Configure email' has been clicked - this calls kcmshell System/email 
.PP
Definition at line 309 of file kbugreport.cpp.
.PP
References endl(), QString::fromLatin1(), kdDebug(), slotSetFrom(), and KProcess::start().
.PP
Referenced by KBugReport().
.SS "void KBugReport::slotSetFrom ()\fC [protected, virtual, slot]\fP"
.PP
Sets the 'From' field from the e-mail configuration Called at creation time, but also after 'Configure email' is closed. 
.PP
Definition at line 325 of file kbugreport.cpp.
.PP
References QString::fromLatin1(), QString::isEmpty(), KConfigBase::readEntry(), KConfigBase::setGroup(), and QLabel::setText().
.PP
Referenced by KBugReport(), and slotConfigureEmail().
.SS "void KBugReport::slotUrlClicked (const \fBQString\fP &)\fC [protected, virtual, slot]\fP"
.PP
The URL-Label 'http://bugs.kde.org/' was clicked. 
.PP
\fBDeprecated\fP
.RS 4
remove in KDE4.0 
.RE
.PP

.PP
Definition at line 354 of file kbugreport.cpp.
.PP
References KDialogBase::slotCancel().
.SS "void KBugReport::slotOk (void)\fC [protected, virtual, slot]\fP"
.PP
OK has been clicked. 
.PP
Reimplemented from \fBKDialogBase\fP.
.PP
Definition at line 366 of file kbugreport.cpp.
.PP
References QDialog::accept(), KMessageBox::error(), KMessageBox::information(), sendBugReport(), and QLineEdit::text().
.PP
Referenced by KBugReport().
.SS "void KBugReport::slotCancel ()\fC [protected, virtual, slot]\fP"
.PP
Cancel has been clicked. 
.PP
Reimplemented from \fBKDialogBase\fP.
.PP
Definition at line 423 of file kbugreport.cpp.
.PP
References QMultiLineEdit::edited(), KDialogBase::slotCancel(), and KMessageBox::warningYesNo().
.SS "void KBugReport::appChanged (int)\fC [protected, slot]\fP"
.PP
Application combo selection changed (and was activated). 
.PP
Definition at line 288 of file kbugreport.cpp.
.PP
References endl(), QString::find(), kdDebug(), QString::left(), QLabel::setText(), updateURL(), and KAboutData::version().
.PP
Referenced by KBugReport().
.SS "void KBugReport::updateURL ()\fC [protected, slot]\fP"
.PP
Update the url to match the current os, compiler, selected app, etc. 
.PP
Definition at line 276 of file kbugreport.cpp.
.PP
References KURL::addQueryItem(), and KURL::url().
.PP
Referenced by appChanged(), and KBugReport().
.SS "\fBQString\fP KBugReport::text () const\fC [protected]\fP"
.PP
A complete copy of the bug report. 
.PP
\fBReturns:\fP
.RS 4
\fBQString\fP copy of the bug report. 
.RE
.PP

.PP
Definition at line 437 of file kbugreport.cpp.
.PP
References QString::arg(), endl(), QString::endsWith(), QString::fromLatin1(), kdDebug(), QMultiLineEdit::numLines(), QString::replace(), and QMultiLineEdit::textLine().
.PP
Referenced by KBugReport(), and sendBugReport().
.SS "bool KBugReport::sendBugReport ()\fC [protected]\fP"
.PP
Attempt to e-mail the bug report. 
.PP
\fBReturns:\fP
.RS 4
true on success 
.RE
.PP

.PP
Definition at line 477 of file kbugreport.cpp.
.PP
References QString::ascii(), KAboutData::bugAddress(), KTempFile::close(), endl(), KStandardDirs::findExe(), QString::fromLatin1(), QString::isEmpty(), kdDebug(), kdError(), QString::length(), locate(), KTempFile::name(), KProcess::quote(), QTextStream::readLine(), QTextStream::setEncoding(), text(), QLineEdit::text(), and KTempFile::unlink().
.PP
Referenced by slotOk().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
