diff options
Diffstat (limited to 'addon/xmlparse/mainhandler.h')
-rw-r--r-- | addon/xmlparse/mainhandler.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/addon/xmlparse/mainhandler.h b/addon/xmlparse/mainhandler.h index 75a3b98..0d69f25 100644 --- a/addon/xmlparse/mainhandler.h +++ b/addon/xmlparse/mainhandler.h @@ -19,15 +19,28 @@ #include <qlist.h> #include "basehandler.h" #include "compoundhandler.h" +#include "doxmlintf.h" -class MainHandler : public BaseHandler<MainHandler> +class MainHandler : public IDoxygen, public BaseHandler<MainHandler> { public: virtual void startCompound(const QXmlAttributes& attrib); MainHandler(); virtual ~MainHandler(); + + // IDoxygen + QListIterator<ICompound> getCompoundIterator() const + { + return m_compounds; + } + ICompound *getCompoundById(const QString &id) const + { + return m_compoundDict[id]; + } + private: - QList<CompoundHandler> m_compounds; + QList<ICompound> m_compounds; + QDict<ICompound> m_compoundDict; }; #endif |