~apparmor-dev/apparmor/2_3

« back to all changes in this revision

Viewing changes to management/yastui/src/clients/subdomain.ycp

  • Committer: jrjohansen
  • Date: 2008-05-19 22:46:34 UTC
  • Revision ID: svn-v4:40609528-9d10-0410-9bd8-e926d5471da9:trunk:1247
move yastui to deprecated as the YaST ui is now being maintained and developed in the YaST svn

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ------------------------------------------------------------------
2
 
*
3
 
*    Copyright (C) 2002-2006 Novell/SUSE
4
 
*
5
 
*    This program is free software; you can redistribute it and/or
6
 
*    modify it under the terms of version 2 of the GNU General Public
7
 
*    License published by the Free Software Foundation.
8
 
*
9
 
  ------------------------------------------------------------------*/
10
 
 
11
 
{
12
 
 
13
 
textdomain "yast2-apparmor";
14
 
 
15
 
/* The main () */
16
 
y2milestone("----------------------------------------");
17
 
y2milestone("Subdomain module started");
18
 
 
19
 
import "Label";
20
 
import "Popup";
21
 
import "Wizard";
22
 
 
23
 
include "subdomain/apparmor_packages.ycp";
24
 
include "subdomain/sd-config.ycp";
25
 
 
26
 
if (!installAppArmorPackages()) {
27
 
  return;
28
 
}
29
 
 
30
 
list<map> config_steps =
31
 
[
32
 
        $[ "id": "subdomain",  "label": _("Enable AppArmor Functions")     ],
33
 
];
34
 
 
35
 
list<map> steps = flatten( [ config_steps ] );
36
 
 
37
 
define symbol displayPage( integer no ) ``{
38
 
 
39
 
        string current_id = lookup( steps[ no ]:nil, "id", "");
40
 
        symbol button = nil;
41
 
 
42
 
    UI::WizardCommand(`SetCurrentStep( current_id ) );
43
 
 
44
 
    if ( current_id == "subdomain") {
45
 
                //button = displaySubdomainConfig();
46
 
                button = displayAppArmorConfig();
47
 
        }
48
 
 
49
 
 
50
 
 
51
 
        return button;
52
 
 
53
 
}
54
 
 
55
 
integer current_step = 0;
56
 
symbol button = displayPage( current_step );
57
 
 
58
 
/* Finish */
59
 
y2milestone("AppArmor module finished");
60
 
y2milestone("----------------------------------------");
61
 
 
62
 
/* EOF */
63
 
}
64