plannerparser.h
00001 // 00002 // C++ Interface: plannerparser 00003 // 00004 // Description: 00005 // 00006 // 00007 // Author: Thorsten Staerk <Thorsten@Staerk.de>, (C) 2004 00008 // 00009 // Copyright: See COPYING file that comes with this distribution 00010 // 00011 // 00012 #ifndef PLANNERPARSER_H 00013 #define PLANNERPARSER_H 00014 00030 #include <tqxml.h> 00031 #include <tdelocale.h> 00032 #include "taskview.h" 00033 #include "task.h" 00034 #include "karmstorage.h" 00035 #include "tdeapplication.h" 00036 00037 class PlannerParser : public TQXmlDefaultHandler 00038 { 00039 public: 00040 00042 PlannerParser(TaskView * tv); 00043 00045 bool startDocument(); 00046 00048 bool startElement( const TQString&, const TQString&, const TQString& qName, const TQXmlAttributes& att ); 00049 00051 bool endElement( const TQString&, const TQString&, const TQString& qName); 00052 00053 private: 00054 bool withInTasks; // within <tasks> ? 00055 TaskView *_taskView; 00056 Task *task; 00057 Task *parentTask; 00058 int level; // level=1: task is top-level-task 00059 }; 00060 00061 00062 #endif