.TH "KBugReport" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KBugReport \- A dialog box for sending bug reports. 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
.RI "\fICreates a bug-report dialog. \fP"
.ti -1c
.RI "virtual \fB~KBugReport\fP ()"
.br
.RI "\fIDestructor. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBslotConfigureEmail\fP ()"
.br
.RI "\fI'Configure email' has been clicked - this calls kcmshell System/email \fP"
.ti -1c
.RI "virtual void \fBslotSetFrom\fP ()"
.br
.RI "\fISets the 'From' field from the e-mail configuration Called at creation time, but also after 'Configure email' is closed. \fP"
.ti -1c
.RI "virtual void \fBslotUrlClicked\fP (const  \fBQString\fP &)"
.br
.RI "\fIThe URL-Label 'http://bugs.kde.org/' was clicked. \fP"
.ti -1c
.RI "virtual void \fBslotOk\fP (void)"
.br
.RI "\fIOK has been clicked. \fP"
.ti -1c
.RI "virtual void \fBslotCancel\fP ()"
.br
.RI "\fICancel has been clicked. \fP"
.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. 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 = 0L, bool modal = true, const \fBKAboutData\fP * aboutData = 0L)"
.PP
Creates a bug-report dialog. 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. Definition at line 66 of file kbugreport.cpp.
.PP
References KGlobal::_activeInstance, KInstance::aboutData(), QWhatsThis::add(), QGridLayout::addMultiCellWidget(), QGridLayout::addWidget(), KAboutData::appName(), KAboutData::bugAddress(), QString::fromLatin1(), KGlobal::instance(), KStdAccel::label(), KDialogBase::plainPage(), QLabel::setBuddy(), KDialogBase::setButtonCancelText(), KDialogBase::setButtonOKText(), QRadioButton::setChecked(), QGridLayout::setColStretch(), KDialogBase::showButtonOK(), slotConfigureEmail(), slotSetFrom(), slotUrlClicked(), KDialog::spacingHint(), and KAboutData::version().
.SS "KBugReport::~\fBKBugReport\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 282 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 Definition at line 315 of file kbugreport.cpp.
.PP
References QString::fromLatin1(), 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. Definition at line 331 of file kbugreport.cpp.
.PP
References QString::fromLatin1(), QString::isEmpty(), KStdAccel::name(), 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. Definition at line 360 of file kbugreport.cpp.
.PP
References KDialogBase::slotCancel().
.PP
Referenced by KBugReport().
.SS "void KBugReport::slotOk (void)\fC [protected, virtual, slot]\fP"
.PP
OK has been clicked. Reimplemented from \fBKDialogBase\fP.
.PP
Definition at line 372 of file kbugreport.cpp.
.PP
References QDialog::accept(), KMessageBox::error(), KMessageBox::information(), KMessageBox::questionYesNo(), and QLineEdit::text().
.SS "void KBugReport::slotCancel ()\fC [protected, virtual, slot]\fP"
.PP
Cancel has been clicked. Reimplemented from \fBKDialogBase\fP.
.PP
Definition at line 426 of file kbugreport.cpp.
.PP
References QMultiLineEdit::edited(), KDialogBase::slotCancel(), and KMessageBox::warningYesNo().

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