karm

PlannerParser Class Reference

#include <plannerparser.h>

Inherits TQXmlDefaultHandler.

Public Member Functions

 PlannerParser (TaskView *tv)
 
bool startDocument ()
 
bool startElement (const TQString &, const TQString &, const TQString &qName, const TQXmlAttributes &att)
 
bool endElement (const TQString &, const TQString &, const TQString &qName)
 

Detailed Description

this class is here to import tasks from a planner project file to karm.

the import shall not be limited to karm (kPlaTo sends greetings) it imports planner's top-level-tasks on the same level-depth as current_item. if there is no current_item, planner's top-level-tasks will become top-level-tasks in karm. it imports as well the level-depth of each task, as its name, as its percent-complete. test cases:

  • deleting all tasks away, then import!
  • having started with an empty ics, import!
  • with current_item being a top-level-task, import!
  • with current_item being a subtask, import!
Author
Thorsten Staerk

Definition at line 37 of file plannerparser.h.

Constructor & Destructor Documentation

◆ PlannerParser()

PlannerParser::PlannerParser ( TaskView tv)

Stores the active TaskView in this parser.

Returns error code (not always, hopefully)

Definition at line 29 of file plannerparser.cpp.

Member Function Documentation

◆ endElement()

bool PlannerParser::endElement ( const TQString &  ,
const TQString &  ,
const TQString &  qName 
)

given by the framework from qxml.

Called when the reader occurs a closed tag (e.g. </b> )

Definition at line 90 of file plannerparser.cpp.

◆ startDocument()

bool PlannerParser::startDocument ( )

given by the framework from qxml.

Called when parsing the xml-document starts.

Definition at line 45 of file plannerparser.cpp.

◆ startElement()

bool PlannerParser::startElement ( const TQString &  ,
const TQString &  ,
const TQString &  qName,
const TQXmlAttributes &  att 
)

given by the framework from qxml.

Called when the reader occurs an open tag (e.g. <b> )

Definition at line 51 of file plannerparser.cpp.


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