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 <klocale.h>
32 #include "taskview.h"
33 #include "task.h"
34 #include "karmstorage.h"
35 #include "kapplication.h"
36 
37 class PlannerParser : public TQXmlDefaultHandler
38 {
39 public:
40 
42  PlannerParser(TaskView * tv);
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 
53 private:
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