Salome HOME
6aa157a93e9a747ae8650485c00bf5302e94c297
[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, Open CASCADE SAS (vadim.sandler@opencascade.com)
4 //  Project   : SALOME
5 //  Module    : Installation Wizard
6 //  Copyright : 2002-2006 CEA
7
8 #ifndef __SALOME_XmlHandler
9 #define __SALOME_XmlHandler
10
11 #include <qxml.h>
12
13 /*!
14   Class StructureParser: parses xml-description file and populates the list of the products
15 */
16 class ProductsView;
17 class SALOME_InstallWizard;
18 class QLineEdit;
19
20 class StructureParser: public QXmlDefaultHandler
21 {
22 public:
23   // constructor
24   StructureParser( SALOME_InstallWizard* wizard = 0 );
25
26   // set control widgets
27   void setProductsList( ProductsView* view );
28   void setTargetDir( QLineEdit* dir );
29   void setTempDir( QLineEdit* dir );
30
31   // begins parsing of the xml dom-element
32   bool startElement( const QString&, 
33                      const QString&, 
34                      const QString& ,
35                      const QXmlAttributes& );
36   // finishes parsing of the xml dom-element of the xml dom-element
37   bool endElement( const QString&, 
38                    const QString&, 
39                    const QString& );
40
41 private:
42   SALOME_InstallWizard* myWizard;    // Salome Pro installation wizard's main window
43   ProductsView*         myTree;      // products list view
44   QLineEdit*            myTargetDir; // target directory widget
45   QLineEdit*            myTempDir;   // temp directory widget
46 };
47
48 #endif