#include <Y2WFMComponent.h>
Inheritance diagram for Y2WFMComponent:
Public Member Functions | |
Y2WFMComponent () | |
~Y2WFMComponent () | |
virtual string | name () const |
virtual YCPValue | doActualWork (const YCPList &arglist, Y2Component *displayserver) |
virtual YCPValue | evaluate (const YCPValue &command) |
YCPInteger | SCROpen (const YCPString &name, const YCPBoolean &check_version) |
void | SCRClose (const YCPInteger &handle) |
YCPString | SCRGetName (const YCPInteger &handle) |
void | SCRSetDefault (const YCPInteger &handle) |
YCPInteger | SCRGetDefault () const |
YCPValue | Args (const YCPInteger &index=YCPNull()) const |
YCPString | GetLanguage () const |
YCPString | GetEncoding () const |
YCPString | SetLanguage (const YCPString &language, const YCPString &encoding=YCPNull()) |
YCPValue | Read (const YCPPath &path, const YCPValue &arg) |
YCPValue | Write (const YCPPath &path, const YCPValue &arg1, const YCPValue &arg2=YCPNull()) |
YCPValue | Execute (const YCPPath &path, const YCPValue &arg1) |
YCPValue | CallFunction (const YCPString &client, const YCPList &args=YCPList()) |
YCPString | GetEnvironmentEncoding () |
virtual Y2Namespace * | import (const char *name_space) |
Static Public Member Functions | |
Y2WFMComponent * | instance () |
Private Types | |
typedef vector< WFMSubAgent * > | WFMSubAgents |
Private Member Functions | |
bool | createDefaultSCR () |
WFMSubAgents::iterator | find_handle (int) |
const char * | get_env_lang () const |
Private Attributes | |
WFMSubAgents | scrs |
int | handle_cnt |
int | default_handle |
WFMSubAgent | local |
string | modulename |
YCPList | argumentlist |
string | currentLanguage |
string | currentEncoding |
string | systemEncoding |
string | environmentEncoding |
Static Private Attributes | |
Y2WFMComponent * | current_wfm = 0 |
|
|
Creates a new WFM component |
|
Cleans up |
|
|
|
|
|
|
|
Executes the YCP script. Reimplemented from Y2Component. |
|
callback entry point usually calls back into Y2WFMInterpreter::evaluate We're not using a pointer here because the evaluate() slot already exists in the Y2Component class Reimplemented from Y2Component. |
|
|
|
Finds a SCR instance to a given handle. |
|
Get the language from the environment. |
|
|
|
|
|
|
|
Try to import a given namespace. This method is used for transparent handling of namespaces (YCP modules) through whole YaST. NOTICE: there is no reverse operation to import. Semantics of YCP modules is there is a single instance and it is available from the first import until the end of YaST run.
Reimplemented from Y2Component. |
|
|
|
Returns "wfm"; Implements Y2Component. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Arguments of the module that is realized through the wfm. The script has access to it via the builtin args(). The symbol of the term itself is the module name. |
|
|
|
|
|
|
|
Handle of default SCR instance. |
|
environment encoding |
|
Handle count. |
|
The local system agent. |
|
The name of the module that is realized by this wfm. |
|
|
|
system encoding |