structureparser.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef STRUCTUREPARSER_H
00019 #define STRUCTUREPARSER_H
00020
00021 #include "buglist.h"
00022 #include <qstring.h>
00023 #include <qxml.h>
00024
00025
00026
00027 class BugList;
00028
00029
00035 class StructureParser : public QXmlDefaultHandler
00036 {
00037 public:
00038 StructureParser (BugList * Parent);
00039
00040
00041 virtual bool startDocument ();
00042 virtual bool endDocument ();
00043
00044
00045 virtual bool startElement (const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts);
00046 virtual bool endElement (const QString & namespaceURI, const QString & localName, const QString & qName);
00047 virtual bool characters ( const QString & ch );
00048
00049
00050 void AddDeveloper ();
00051
00052
00053 Bug * CurrentBug;
00054 BugList * m_pParent;
00055
00056 private:
00057
00058 typedef enum
00059 {
00060 stateUnknown = 0,
00061 stateDeveloperID = 1,
00062 stateInitials = 2,
00063 stateCounter = 3,
00064 stateBugID = 4,
00065 stateDescription = 5,
00066 stateSeverity = 6,
00067 stateBugClass = 7,
00068 stateReportUserName = 8,
00069 stateReportEMail = 9,
00070 stateReportDate = 10,
00071 stateFixed = 11,
00072 stateFixDate = 12,
00073 statePackage = 13,
00074 stateVersionNo = 14,
00075 stateNotes = 15,
00076 stateLocation = 16,
00077 stateWorkaround = 17,
00078 stateFixScheduled = 18,
00079 stateAssignedTo = 19,
00080 stateAssignedDate = 20,
00081 stateAssignedEMail = 21,
00082 stateSysInfo = 22,
00083 statePriority = 23,
00084 stateRepeat = 24
00085 } StateType;
00086
00087 private:
00088 StateType State;
00089 int CurrentCount;
00090 QString CurrentInitials;
00091 };
00092
00093
00094 #endif
00095
This file is part of the documentation for KDevelop Version 3.1.2.