OpenNet
SetupTool.h
Go to the documentation of this file.
1 
2 // Product OpenNet
3 
8 
9 #pragma once
10 
11 // Includes
13 
14 // ===== Includes ===========================================================
15 #include <OpenNet/Status.h>
16 
17 namespace OpenNet
18 {
19 
20  // Class
22 
29  class SetupTool
30  {
31 
32  public:
33 
43  static OPEN_NET_PUBLIC SetupTool * Create(bool aDebug = false);
44 
52  virtual void Delete();
53 
64  virtual const char * GetBinaryFolder() const = 0;
65 
76  virtual const char * GetIncludeFolder() const = 0;
77 
87  virtual const char * GetInstallFolder() const = 0;
88 
99  virtual const char * GetLibraryFolder() const = 0;
100 
111  virtual bool IsDebugEnabled() const = 0;
112 
121  virtual Status Install() = 0;
122 
131  virtual Status Uninstall() = 0;
132 
143  virtual Status Interactif_ExecuteCommand(unsigned int aCommand) = 0;
144 
154  virtual unsigned int Interactif_GetCommandCount() = 0;
155 
169  virtual const char * Interactif_GetCommandText(unsigned int aCommand) = 0;
170 
184  virtual Status Wizard_ExecutePage(unsigned int * aPage, unsigned int aButton) = 0;
185 
198  virtual unsigned int Wizard_GetPageButtonCount(unsigned int aPage) = 0;
199 
214  virtual const char * Wizard_GetPageButtonText(unsigned int aPage, unsigned int aButton) = 0;
215 
226  virtual unsigned int Wizard_GetPageCount() = 0;
227 
240  virtual const char * Wizard_GetPageText(unsigned int aPage) = 0;
241 
254  virtual const char * Wizard_GetPageTitle(unsigned int aPage) = 0;
255 
256  protected:
257 
258  SetupTool();
259 
260  virtual ~SetupTool();
261 
262  private:
263 
264  SetupTool(const SetupTool &);
265 
266  const SetupTool & operator = (const SetupTool &);
267 
268  };
269 
270 }
virtual Status Install()=0
Install.
virtual Status Interactif_ExecuteCommand(unsigned int aCommand)=0
Execute interactif command.
This class define the setup level interface.
Definition: SetupTool.h:29
Definition: Adapter.h:19
virtual const char * GetBinaryFolder() const =0
Retrieve the name of the folder containing binary files.
virtual const char * Wizard_GetPageTitle(unsigned int aPage)=0
Retrieve the title of a wizard page.
virtual const char * Wizard_GetPageButtonText(unsigned int aPage, unsigned int aButton)=0
Retrieve the text of a button.
virtual const char * GetIncludeFolder() const =0
Retrieve the name of the folder containing header files.
virtual Status Uninstall()=0
Uninstall.
virtual void Delete()
Create an instance of SetupTool.
virtual unsigned int Wizard_GetPageButtonCount(unsigned int aPage)=0
Retrieve the number of button on a wizard pages.
virtual Status Wizard_ExecutePage(unsigned int *aPage, unsigned int aButton)=0
Execute a wizard page.
virtual const char * GetInstallFolder() const =0
Retrieve the name of the installation folder.
virtual unsigned int Wizard_GetPageCount()=0
Retrieve the number of wizard pages.
static OPEN_NET_PUBLIC SetupTool * Create(bool aDebug=false)
Create an instance of SetupTool.
virtual const char * Interactif_GetCommandText(unsigned int aCommand)=0
Retrieve the text describing an interactif commands.
virtual const char * GetLibraryFolder() const =0
Retrieve the name of the folder containing library files.
virtual const char * Wizard_GetPageText(unsigned int aPage)=0
Retrieve the text of a wizard page.
virtual unsigned int Interactif_GetCommandCount()=0
Retrieve the number of available interactif commands.
virtual bool IsDebugEnabled() const =0
Is the debug trace enabled?