KDevelop API Documentation

structureparser.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           structureparser.h  -  description
00003                              -------------------
00004     begin                : Sun Dec 3 2000
00005     copyright            : (C) 2000 by Ivan Hawkes
00006     email                : linuxgroupie@ivanhawkes.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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 // Forward declaration to handle the dependancies.
00027 class BugList;
00028 
00029 
00035 class StructureParser : public QXmlDefaultHandler
00036 {
00037     public:
00038         StructureParser (BugList * Parent);
00039 
00040         // Document handling code.
00041         virtual bool startDocument ();
00042         virtual bool endDocument ();
00043 
00044         // Element handling code.
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         // Add a record to the developer list.
00050         void AddDeveloper ();
00051 
00052         // We use this to load the listview from our XML handler.
00053         Bug *           CurrentBug;
00054         BugList *       m_pParent;
00055 
00056     private:
00057         // The current state of our FSA.
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 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:38 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003