#include <kptxmlloaderobject.h>
Public Types | |
enum | Severity { None = 0, Errors = 1, Warnings = 2, Diagnostics = 3, Debug = 4 } |
Public Member Functions | |
XMLLoaderObject () | |
~XMLLoaderObject () | |
void | setProject (Project *proj) |
Project & | project () const |
void | startLoad () |
void | stopLoad () |
QDateTime | lastLoaded () const |
int | elapsed () const |
QString | formatElapsed () |
void | setLogLevel (Severity sev) |
const QStringList & | log () const |
void | addMsg (int sev, QString msg) |
void | addMsg (QString msg) |
void | increment (int sev) |
void | incErrors () |
int | errors () const |
bool | error () const |
void | incWarnings () |
int | warnings () const |
bool | warning () const |
Protected Attributes | |
Project * | m_project |
int | m_errors |
int | m_warnings |
int | m_logLevel |
QStringList | m_log |
QDateTime | m_starttime |
QTime | m_timer |
int | m_elapsed |
Definition at line 32 of file kptxmlloaderobject.h.
Definition at line 34 of file kptxmlloaderobject.h.
KPlato::XMLLoaderObject::XMLLoaderObject | ( | ) | [inline] |
Definition at line 35 of file kptxmlloaderobject.h.
KPlato::XMLLoaderObject::~XMLLoaderObject | ( | ) | [inline] |
Definition at line 42 of file kptxmlloaderobject.h.
void KPlato::XMLLoaderObject::setProject | ( | Project * | proj | ) | [inline] |
Project& KPlato::XMLLoaderObject::project | ( | ) | const [inline] |
void KPlato::XMLLoaderObject::startLoad | ( | ) | [inline] |
Definition at line 47 of file kptxmlloaderobject.h.
References addMsg(), m_errors, m_log, m_starttime, m_timer, and m_warnings.
Referenced by KPlato::Part::loadXML().
void KPlato::XMLLoaderObject::stopLoad | ( | ) | [inline] |
Definition at line 54 of file kptxmlloaderobject.h.
References addMsg(), formatElapsed(), m_elapsed, and m_timer.
Referenced by KPlato::Part::loadXML().
QDateTime KPlato::XMLLoaderObject::lastLoaded | ( | ) | const [inline] |
int KPlato::XMLLoaderObject::elapsed | ( | ) | const [inline] |
QString KPlato::XMLLoaderObject::formatElapsed | ( | ) | [inline] |
void KPlato::XMLLoaderObject::setLogLevel | ( | Severity | sev | ) | [inline] |
const QStringList& KPlato::XMLLoaderObject::log | ( | ) | const [inline] |
Definition at line 63 of file kptxmlloaderobject.h.
References m_log.
Referenced by KPlato::View::slotPrintTestDebug().
void KPlato::XMLLoaderObject::addMsg | ( | int | sev, | |
QString | msg | |||
) | [inline] |
Definition at line 64 of file kptxmlloaderobject.h.
References Debug, Diagnostics, Errors, increment(), m_log, m_logLevel, and Warnings.
Referenced by KPlato::Part::loadXML(), startLoad(), and stopLoad().
void KPlato::XMLLoaderObject::addMsg | ( | QString | msg | ) | [inline] |
void KPlato::XMLLoaderObject::increment | ( | int | sev | ) | [inline] |
Definition at line 76 of file kptxmlloaderobject.h.
References Errors, incErrors(), incWarnings(), and Warnings.
Referenced by addMsg().
void KPlato::XMLLoaderObject::incErrors | ( | ) | [inline] |
int KPlato::XMLLoaderObject::errors | ( | ) | const [inline] |
bool KPlato::XMLLoaderObject::error | ( | ) | const [inline] |
void KPlato::XMLLoaderObject::incWarnings | ( | ) | [inline] |
Definition at line 83 of file kptxmlloaderobject.h.
References m_warnings.
Referenced by increment().
int KPlato::XMLLoaderObject::warnings | ( | ) | const [inline] |
bool KPlato::XMLLoaderObject::warning | ( | ) | const [inline] |
Project* KPlato::XMLLoaderObject::m_project [protected] |
int KPlato::XMLLoaderObject::m_errors [protected] |
Definition at line 89 of file kptxmlloaderobject.h.
Referenced by error(), errors(), incErrors(), and startLoad().
int KPlato::XMLLoaderObject::m_warnings [protected] |
Definition at line 90 of file kptxmlloaderobject.h.
Referenced by incWarnings(), startLoad(), warning(), and warnings().
int KPlato::XMLLoaderObject::m_logLevel [protected] |
QStringList KPlato::XMLLoaderObject::m_log [protected] |
QDateTime KPlato::XMLLoaderObject::m_starttime [protected] |
QTime KPlato::XMLLoaderObject::m_timer [protected] |
int KPlato::XMLLoaderObject::m_elapsed [protected] |
Definition at line 95 of file kptxmlloaderobject.h.
Referenced by elapsed(), formatElapsed(), and stopLoad().