Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
DlgErrorReportAbstractBase Class Reference

Base class for dialogs that handle the error report. More...

#include <DlgErrorReportAbstractBase.h>

Inheritance diagram for DlgErrorReportAbstractBase:
Inheritance graph
Collaboration diagram for DlgErrorReportAbstractBase:
Collaboration graph

Public Member Functions

 DlgErrorReportAbstractBase (QWidget *parent=0)
 Single constructor. More...
 
 ~DlgErrorReportAbstractBase ()
 

Protected Member Functions

QString errorFile () const
 File name for output file containing error report. More...
 
void saveFile (const QString &xml) const
 Save xml into output file named by errorFile. More...
 

Detailed Description

Base class for dialogs that handle the error report.

Definition at line 13 of file DlgErrorReportAbstractBase.h.

Constructor & Destructor Documentation

DlgErrorReportAbstractBase::DlgErrorReportAbstractBase ( QWidget *  parent = 0)

Single constructor.

Definition at line 14 of file DlgErrorReportAbstractBase.cpp.

14  :
15  QDialog (parent)
16 {
17 }
DlgErrorReportAbstractBase::~DlgErrorReportAbstractBase ( )

Definition at line 19 of file DlgErrorReportAbstractBase.cpp.

20 {
21 }

Member Function Documentation

QString DlgErrorReportAbstractBase::errorFile ( ) const
protected

File name for output file containing error report.

Definition at line 23 of file DlgErrorReportAbstractBase.cpp.

24 {
25  return QCoreApplication::applicationDirPath() + "/" + ERROR_REPORT_FILE;
26 }
const QString ERROR_REPORT_FILE("engauge_error_report.xml")
void DlgErrorReportAbstractBase::saveFile ( const QString &  xml) const
protected

Save xml into output file named by errorFile.

Definition at line 28 of file DlgErrorReportAbstractBase.cpp.

29 {
30  QFile file (errorFile());
31  if (file.open (QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
32 
33  QTextStream out (&file);
34  out << xml;
35 
36  file.close();
37  }
38 }
QString errorFile() const
File name for output file containing error report.

The documentation for this class was generated from the following files: