\section{KBug\-Report Class Reference}
\label{classKBugReport}\index{KBugReport@{KBugReport}}
A dialog box for sending bug reports.  


{\tt \#include $<$kbugreport.h$>$}

Inheritance diagram for KBug\-Report:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKBugReport__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KBug\-Report:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=231pt]{classKBugReport__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KBug\-Report} ({\bf QWidget} $\ast$parent=0L, bool modal=true, const {\bf KAbout\-Data} $\ast$about\-Data=0L)
\item 
virtual {\bf $\sim$KBug\-Report} ()
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Configure\-Email} ()
\item 
virtual void {\bf slot\-Set\-From} ()
\item 
virtual void {\bf slot\-Url\-Clicked} (const {\bf QString} \&)
\item 
virtual void {\bf slot\-Ok} (void)
\item 
virtual void {\bf slot\-Cancel} ()
\item 
void {\bf app\-Changed} (int)
\item 
void {\bf update\-URL} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf text} () const 
\item 
bool {\bf send\-Bug\-Report} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKBugReport_b2}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KProcess} $\ast$ {\bf m\_\-process}\label{classKBugReport_p0}

\item 
const {\bf KAbout\-Data} $\ast$ {\bf m\_\-about\-Data}\label{classKBugReport_p1}

\item 
{\bf QMulti\-Line\-Edit} $\ast$ {\bf m\_\-lineedit}\label{classKBugReport_p2}

\item 
{\bf QLine\-Edit} $\ast$ {\bf m\_\-subject}\label{classKBugReport_p3}

\item 
{\bf QLabel} $\ast$ {\bf m\_\-from}\label{classKBugReport_p4}

\item 
{\bf QLabel} $\ast$ {\bf m\_\-version}\label{classKBugReport_p5}

\item 
{\bf QString} {\bf m\_\-str\-Version}\label{classKBugReport_p6}

\item 
{\bf QHButton\-Group} $\ast$ {\bf m\_\-bg\-Severity}\label{classKBugReport_p7}

\item 
{\bf QPush\-Button} $\ast$ {\bf m\_\-configure\-Email}\label{classKBugReport_p8}

\end{CompactItemize}


\subsection{Detailed Description}
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 {\bf KAbout\-Data} class. Make sure you create an instance of {\bf KAbout\-Data} and pass it to {\bf KCmd\-Line\-Args}.

\begin{Desc}
\item[Author:]David Faure $<${\tt faure@kde.org}$>$ \end{Desc}




Definition at line 42 of file kbugreport.h.

\subsection{Constructor \& Destructor Documentation}
\index{KBugReport@{KBug\-Report}!KBugReport@{KBugReport}}
\index{KBugReport@{KBugReport}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBug\-Report::KBug\-Report ({\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, bool {\em modal} = {\tt true}, const {\bf KAbout\-Data} $\ast$ {\em about\-Data} = {\tt 0L})}\label{classKBugReport_a0}


Creates a bug-report dialog. 

Note that you shouldn't have to do this manually, since {\bf KHelp\-Menu}{\rm (p.\,\pageref{classKHelpMenu})} takes care of the menu item for \char`\"{}Report Bug...\char`\"{} and of creating a KBug\-Report dialog. 

Definition at line 68 of file kbugreport.cpp.

References KInstance::about\-Data(), QWhats\-This::add(), QGrid\-Layout::add\-Multi\-Cell\-Widget(), QGrid\-Layout::add\-Widget(), app\-Changed(), KAbout\-Data::bug\-Address(), QString::from\-Latin1(), KGlobal::instance(), KDialog\-Base::plain\-Page(), KAbout\-Data::product\-Name(), QLabel::set\-Buddy(), KDialog\-Base::set\-Button\-Cancel(), KDialog\-Base::set\-Button\-OK(), QRadio\-Button::set\-Checked(), QGrid\-Layout::set\-Col\-Stretch(), KDialog\-Base::show\-Button\-OK(), slot\-Configure\-Email(), slot\-Ok(), slot\-Set\-From(), KDialog::spacing\-Hint(), text(), update\-URL(), and KAbout\-Data::version().\index{KBugReport@{KBug\-Report}!~KBugReport@{$\sim$KBugReport}}
\index{~KBugReport@{$\sim$KBugReport}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBug\-Report::$\sim${\bf KBug\-Report} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKBugReport_a1}


Destructor. 



Definition at line 271 of file kbugreport.cpp.

\subsection{Member Function Documentation}
\index{KBugReport@{KBug\-Report}!slotConfigureEmail@{slotConfigureEmail}}
\index{slotConfigureEmail@{slotConfigureEmail}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Configure\-Email ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j0}


\char`\"{}Configure email\char`\"{} has been clicked - this calls kcmshell System/email 



Definition at line 309 of file kbugreport.cpp.

References endl(), QString::from\-Latin1(), kd\-Debug(), slot\-Set\-From(), and KProcess::start().

Referenced by KBug\-Report().\index{KBugReport@{KBug\-Report}!slotSetFrom@{slotSetFrom}}
\index{slotSetFrom@{slotSetFrom}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Set\-From ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j1}


Sets the \char`\"{}From\char`\"{} field from the e-mail configuration Called at creation time, but also after \char`\"{}Configure email\char`\"{} is closed. 



Definition at line 325 of file kbugreport.cpp.

References QString::from\-Latin1(), QString::is\-Empty(), KConfig\-Base::read\-Entry(), KConfig\-Base::set\-Group(), and QLabel::set\-Text().

Referenced by KBug\-Report(), and slot\-Configure\-Email().\index{KBugReport@{KBug\-Report}!slotUrlClicked@{slotUrlClicked}}
\index{slotUrlClicked@{slotUrlClicked}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Url\-Clicked (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j2}


The URL-Label \char`\"{}http://bugs.kde.org/\char`\"{} was clicked. 

\begin{Desc}
\item[{\bf Deprecated}]remove in KDE4.0 \end{Desc}


Definition at line 354 of file kbugreport.cpp.

References KDialog\-Base::slot\-Cancel().\index{KBugReport@{KBug\-Report}!slotOk@{slotOk}}
\index{slotOk@{slotOk}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Ok (void)\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j3}


OK has been clicked. 



Reimplemented from {\bf KDialog\-Base} {\rm (p.\,\pageref{classKDialogBase_j6})}.

Definition at line 366 of file kbugreport.cpp.

References QDialog::accept(), KMessage\-Box::error(), KMessage\-Box::information(), send\-Bug\-Report(), and QLine\-Edit::text().

Referenced by KBug\-Report().\index{KBugReport@{KBug\-Report}!slotCancel@{slotCancel}}
\index{slotCancel@{slotCancel}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Cancel ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j4}


Cancel has been clicked. 



Reimplemented from {\bf KDialog\-Base} {\rm (p.\,\pageref{classKDialogBase_j11})}.

Definition at line 423 of file kbugreport.cpp.

References QMulti\-Line\-Edit::edited(), KDialog\-Base::slot\-Cancel(), and KMessage\-Box::warning\-Yes\-No().\index{KBugReport@{KBug\-Report}!appChanged@{appChanged}}
\index{appChanged@{appChanged}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::app\-Changed (int)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKBugReport_j5}


Application combo selection changed (and was activated). 



Definition at line 288 of file kbugreport.cpp.

References endl(), QString::find(), kd\-Debug(), QString::left(), QLabel::set\-Text(), update\-URL(), and KAbout\-Data::version().

Referenced by KBug\-Report().\index{KBugReport@{KBug\-Report}!updateURL@{updateURL}}
\index{updateURL@{updateURL}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::update\-URL ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKBugReport_j6}


Update the url to match the current os, compiler, selected app, etc. 



Definition at line 276 of file kbugreport.cpp.

References KURL::add\-Query\-Item(), and KURL::url().

Referenced by app\-Changed(), and KBug\-Report().\index{KBugReport@{KBug\-Report}!text@{text}}
\index{text@{text}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KBug\-Report::text () const\hspace{0.3cm}{\tt  [protected]}}\label{classKBugReport_b0}


A complete copy of the bug report. 

\begin{Desc}
\item[Returns:]{\bf QString} copy of the bug report. \end{Desc}


Definition at line 437 of file kbugreport.cpp.

References QString::arg(), endl(), QString::ends\-With(), QString::from\-Latin1(), kd\-Debug(), QMulti\-Line\-Edit::num\-Lines(), QString::replace(), and QMulti\-Line\-Edit::text\-Line().

Referenced by KBug\-Report(), and send\-Bug\-Report().\index{KBugReport@{KBug\-Report}!sendBugReport@{sendBugReport}}
\index{sendBugReport@{sendBugReport}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KBug\-Report::send\-Bug\-Report ()\hspace{0.3cm}{\tt  [protected]}}\label{classKBugReport_b1}


Attempt to e-mail the bug report. 

\begin{Desc}
\item[Returns:]true on success \end{Desc}


Definition at line 477 of file kbugreport.cpp.

References QString::ascii(), KAbout\-Data::bug\-Address(), KTemp\-File::close(), endl(), KStandard\-Dirs::find\-Exe(), QString::from\-Latin1(), QString::is\-Empty(), kd\-Debug(), kd\-Error(), QString::length(), locate(), KTemp\-File::name(), KProcess::quote(), QText\-Stream::read\-Line(), QText\-Stream::set\-Encoding(), text(), QLine\-Edit::text(), and KTemp\-File::unlink().

Referenced by slot\-Ok().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kbugreport.h\item 
kbugreport.cpp\end{CompactItemize}
