diff options
Diffstat (limited to 'src/Main.cc')
| -rw-r--r-- | src/Main.cc | 20 | 
1 files changed, 17 insertions, 3 deletions
| diff --git a/src/Main.cc b/src/Main.cc index 6566193..22534c1 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -104,6 +104,18 @@ class ad_t : public Action {  };  Action * ad = new ad_t(); +class dostop_t : public Action { +  public: +      dostop_t() : Action("dostop") { } +      virtual ~dostop_t() { } +    virtual String GetTitle() { return "Arret du serveur"; } +    virtual Task * Do(Variables * v, Variables * hds, Handle * h) { +	TaskMan::Stop(); +	return 0; +    } +}; +Action * dostop = new dostop_t(); +  String Noms[] = {"Champ1", "Champ2", "Champ3"};  String Defaults[] = {"Default1", "Default2", 0};  String Invites[] = {"Champ 1:", "Champ 2:", "Champ 3:"}; @@ -138,13 +150,15 @@ Send this file: <INPUT NAME=\"userfile\" TYPE=\"file\">  </FORM>  ", "upload"); -Action * Liste[] = {a1, a2, a3, a4, a5, ad, java, up}; -String Labels[] = {"Action 1", "Action 2", "Action 3", "Action 4", "Action 5", "Action dynamique", "Essai de java", "Test d'upload"}; +Action * stop = new Confirm("Stopper", "Stopper le serveur?", "stop", dostop, 0); + +Action * Liste[] = {a1, a2, a3, a4, a5, ad, java, up, stop}; +String Labels[] = {"Action 1", "Action 2", "Action 3", "Action 4", "Action 5", "Action dynamique", "Essai de java", "Test d'upload", "Stop"};  CODE_BEGINS  Action * buildmenu(void) { -    Action * m = new Menu("Menu Principal", "start", Labels, Liste, 8); +    Action * m = new Menu("Menu Principal", "start", Labels, Liste, 9);      return m;  } | 
