home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
modules
/
GetInstArgs.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
1KB
|
65 lines
/**
* File: modules/GetInstArgs.ycp
* Package: yast2
* Summary: Get client arguments
* Authors: Anas Nashif <nashif@suse.de>
*
* $Id: GetInstArgs.ycp 27936 2006-02-13 20:01:14Z olh $
*/
{
module "GetInstArgs";
map args = $[];
void Init () {
/* Check arguments */
args = $[];
if(size(WFM::Args()) > 0 && is(WFM::Args(0), map))
{
args = (map) WFM::Args(0);
}
}
global boolean enable_next() {
Init();
return args["enable_next"]:false;
}
global boolean enable_back() {
Init();
return args["enable_back"]:false;
}
global boolean going_back() {
Init();
return args["going_back"]:false;
}
global string proposal() {
Init();
return args["proposal"]:"";
}
global map argmap () {
Init();
return args;
}
global map ButtonsProposal (boolean back, boolean next, string proposal_name) {
map _args = $[];
_args["enable_back"] = back;
_args["enable_next"] = next;
_args["proposal"] = proposal_name;
return _args;
}
global map Buttons (boolean back, boolean next) {
map _args = $[];
_args["enable_back"] = back;
_args["enable_next"] = next;
return _args;
}
}