home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / xml / tagreader-with-features / structureparser.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  590b  |  31 lines

  1. /*
  2. $Id$
  3. */  
  4.  
  5. #ifndef STRUCTUREPARSER_H
  6. #define STRUCTUREPARSER_H   
  7.  
  8. #include <qxml.h>
  9. #include <qptrstack.h>
  10.  
  11. class QListView;
  12. class QListViewItem;
  13. class QString;
  14.  
  15. class StructureParser: public QXmlDefaultHandler
  16. {
  17. public:
  18.     StructureParser( QListView * );
  19.     bool startElement( const QString&, const QString&, const QString& , 
  20.                        const QXmlAttributes& );
  21.     bool endElement( const QString&, const QString&, const QString& );
  22.  
  23.     void setListView( QListView * );
  24.  
  25. private:
  26.     QPtrStack<QListViewItem> stack;
  27.     QListView * table;
  28. };                   
  29.  
  30. #endif
  31.