karm

plannerparser.h
1//
2// C++ Interface: plannerparser
3//
4// Description:
5//
6//
7// Author: Thorsten Staerk <Thorsten@Staerk.de>, (C) 2004
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef PLANNERPARSER_H
13#define PLANNERPARSER_H
14
30#include <tqxml.h>
31#include <tdelocale.h>
32#include "taskview.h"
33#include "task.h"
34#include "karmstorage.h"
35#include "tdeapplication.h"
36
37class PlannerParser : public TQXmlDefaultHandler
38{
39public:
40
43
45 bool startDocument();
46
48 bool startElement( const TQString&, const TQString&, const TQString& qName, const TQXmlAttributes& att );
49
51 bool endElement( const TQString&, const TQString&, const TQString& qName);
52
53private:
54 bool withInTasks; // within <tasks> ?
55 TaskView *_taskView;
56 Task *task;
57 Task *parentTask;
58 int level; // level=1: task is top-level-task
59};
60
61
62#endif
this class is here to import tasks from a planner project file to karm.
Definition: plannerparser.h:38
PlannerParser(TaskView *tv)
Stores the active TaskView in this parser.
bool endElement(const TQString &, const TQString &, const TQString &qName)
given by the framework from qxml.
bool startElement(const TQString &, const TQString &, const TQString &qName, const TQXmlAttributes &att)
given by the framework from qxml.
bool startDocument()
given by the framework from qxml.
Container and interface for the tasks.
Definition: taskview.h:43
A class representing a task.
Definition: task.h:42