KPlato::XMLLoaderObject Class Reference

#include <kptxmlloaderobject.h>

List of all members.

Public Types

enum  Severity {
  None = 0, Errors = 1, Warnings = 2, Diagnostics = 3,
  Debug = 4
}

Public Member Functions

 XMLLoaderObject ()
 ~XMLLoaderObject ()
void setProject (Project *proj)
Projectproject () 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

Projectm_project
int m_errors
int m_warnings
int m_logLevel
QStringList m_log
QDateTime m_starttime
QTime m_timer
int m_elapsed


Detailed Description

Definition at line 32 of file kptxmlloaderobject.h.


Member Enumeration Documentation

enum KPlato::XMLLoaderObject::Severity

Enumerator:
None 
Errors 
Warnings 
Diagnostics 
Debug 

Definition at line 34 of file kptxmlloaderobject.h.


Constructor & Destructor Documentation

KPlato::XMLLoaderObject::XMLLoaderObject (  )  [inline]

Definition at line 35 of file kptxmlloaderobject.h.

KPlato::XMLLoaderObject::~XMLLoaderObject (  )  [inline]

Definition at line 42 of file kptxmlloaderobject.h.


Member Function Documentation

void KPlato::XMLLoaderObject::setProject ( Project proj  )  [inline]

Definition at line 44 of file kptxmlloaderobject.h.

References m_project.

Project& KPlato::XMLLoaderObject::project (  )  const [inline]

Definition at line 45 of file kptxmlloaderobject.h.

References m_project.

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]

Definition at line 58 of file kptxmlloaderobject.h.

References m_starttime.

int KPlato::XMLLoaderObject::elapsed (  )  const [inline]

Definition at line 59 of file kptxmlloaderobject.h.

References m_elapsed.

QString KPlato::XMLLoaderObject::formatElapsed (  )  [inline]

Definition at line 60 of file kptxmlloaderobject.h.

References m_elapsed.

Referenced by stopLoad().

void KPlato::XMLLoaderObject::setLogLevel ( Severity  sev  )  [inline]

Definition at line 62 of file kptxmlloaderobject.h.

References m_logLevel.

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]

Definition at line 75 of file kptxmlloaderobject.h.

References m_log.

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]

Definition at line 80 of file kptxmlloaderobject.h.

References m_errors.

Referenced by increment().

int KPlato::XMLLoaderObject::errors (  )  const [inline]

Definition at line 81 of file kptxmlloaderobject.h.

References m_errors.

bool KPlato::XMLLoaderObject::error (  )  const [inline]

Definition at line 82 of file kptxmlloaderobject.h.

References m_errors.

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]

Definition at line 84 of file kptxmlloaderobject.h.

References m_warnings.

bool KPlato::XMLLoaderObject::warning (  )  const [inline]

Definition at line 85 of file kptxmlloaderobject.h.

References m_warnings.


Member Data Documentation

Project* KPlato::XMLLoaderObject::m_project [protected]

Definition at line 88 of file kptxmlloaderobject.h.

Referenced by project(), and setProject().

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]

Definition at line 91 of file kptxmlloaderobject.h.

Referenced by addMsg(), and setLogLevel().

QStringList KPlato::XMLLoaderObject::m_log [protected]

Definition at line 92 of file kptxmlloaderobject.h.

Referenced by addMsg(), log(), and startLoad().

QDateTime KPlato::XMLLoaderObject::m_starttime [protected]

Definition at line 93 of file kptxmlloaderobject.h.

Referenced by lastLoaded(), and startLoad().

QTime KPlato::XMLLoaderObject::m_timer [protected]

Definition at line 94 of file kptxmlloaderobject.h.

Referenced by startLoad(), and stopLoad().

int KPlato::XMLLoaderObject::m_elapsed [protected]

Definition at line 95 of file kptxmlloaderobject.h.

Referenced by elapsed(), formatElapsed(), and stopLoad().


The documentation for this class was generated from the following file:
Generated on Wed Nov 22 23:21:52 2006 for KPlato by  doxygen 1.5.1-p1