Salome HOME
0b58829c3fc0fe9b3dc5f6eee2a28d8e317c56e9
[tools/install.git] / src / SALOME_XmlHandler.hxx
1 //  File      : SALOME_XmlHandler.hxx
2 //  Created   : Thu Dec 18 12:01:00 2002
3 //  Author    : Vadim SANDLER
4 //  Project   : PAL/SALOME
5 //  Module    : InstallWizard
6 //  Copyright : 2004 CEA
7 //  $Header$ 
8
9 #ifndef __SALOME_XmlHandler
10 #define __SALOME_XmlHandler
11
12 #include <qxml.h>
13
14 /*!
15   Class StructureParser: parses xml-description file and populates the list of the products
16 */
17 class ProductsView;
18 class SALOME_InstallWizard;
19 class QLineEdit;
20
21 class StructureParser: public QXmlDefaultHandler
22 {
23 public:
24   // constructor
25   StructureParser( SALOME_InstallWizard* wizard = 0 );
26
27   // set control widgets
28   void setProductsList( ProductsView* view );
29   void setTargetDir( QLineEdit* dir );
30   void setTempDir( QLineEdit* dir );
31
32   // begins parsing of the xml dom-element
33   bool startElement( const QString&, 
34                      const QString&, 
35                      const QString& ,
36                      const QXmlAttributes& );
37   // finishes parsing of the xml dom-element of the xml dom-element
38   bool endElement( const QString&, 
39                    const QString&, 
40                    const QString& );
41
42 private:
43   SALOME_InstallWizard* myWizard;    // Salome Pro installation wizard's main window
44   ProductsView*         myTree;      // products list view
45   QLineEdit*            myTargetDir; // target directory widget
46   QLineEdit*            myTempDir;   // temp directory widget
47 };
48
49 #endif