Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

Y2WFMComponent Class Reference

#include <Y2WFMComponent.h>

Inheritance diagram for Y2WFMComponent:

Y2Component List of all members.

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 Y2Namespaceimport (const char *name_space)

Static Public Member Functions

Y2WFMComponentinstance ()

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

Y2WFMComponentcurrent_wfm = 0

Member Typedef Documentation

typedef vector<WFMSubAgent*> Y2WFMComponent::WFMSubAgents [private]
 

Type and list of SCR instances.


Constructor & Destructor Documentation

Y2WFMComponent::Y2WFMComponent  ) 
 

Creates a new WFM component

Y2WFMComponent::~Y2WFMComponent  ) 
 

Cleans up


Member Function Documentation

YCPValue Y2WFMComponent::Args const YCPInteger &  index = YCPNull()  )  const
 

YCPValue Y2WFMComponent::CallFunction const YCPString client,
const YCPList args = YCPList()
 

bool Y2WFMComponent::createDefaultSCR  )  [private]
 

YCPValue Y2WFMComponent::doActualWork const YCPList arglist,
Y2Component displayserver
[virtual]
 

Executes the YCP script.

Reimplemented from Y2Component.

YCPValue Y2WFMComponent::evaluate const YCPValue command  )  [virtual]
 

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.

YCPValue Y2WFMComponent::Execute const YCPPath path,
const YCPValue arg1
 

Y2WFMComponent::WFMSubAgents::iterator Y2WFMComponent::find_handle int   )  [private]
 

Finds a SCR instance to a given handle.

const char * Y2WFMComponent::get_env_lang  )  const [private]
 

Get the language from the environment.

YCPString Y2WFMComponent::GetEncoding  )  const
 

YCPString Y2WFMComponent::GetEnvironmentEncoding  ) 
 

YCPString Y2WFMComponent::GetLanguage  )  const
 

virtual Y2Namespace* Y2WFMComponent::import const char *  name_space  )  [virtual]
 

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.

Parameters:
name_space the name of the required namespace
Returns:
on errors, NULL should be returned. The error reporting must be done by the component itself (typically using y2log). On success, the method should return a proper instance of the imported namespace ready to be used. The returned instance is still owned by the component, any other part of YaST will try to free it. Thus, it's possible to share the instance.

Reimplemented from Y2Component.

Y2WFMComponent* Y2WFMComponent::instance  )  [inline, static]
 

string Y2WFMComponent::name  )  const [virtual]
 

Returns "wfm";

Implements Y2Component.

YCPValue Y2WFMComponent::Read const YCPPath path,
const YCPValue arg
 

void Y2WFMComponent::SCRClose const YCPInteger &  handle  ) 
 

YCPInteger Y2WFMComponent::SCRGetDefault  )  const
 

YCPString Y2WFMComponent::SCRGetName const YCPInteger &  handle  ) 
 

YCPInteger Y2WFMComponent::SCROpen const YCPString name,
const YCPBoolean check_version
 

void Y2WFMComponent::SCRSetDefault const YCPInteger &  handle  ) 
 

YCPString Y2WFMComponent::SetLanguage const YCPString language,
const YCPString encoding = YCPNull()
 

YCPValue Y2WFMComponent::Write const YCPPath path,
const YCPValue arg1,
const YCPValue arg2 = YCPNull()
 


Member Data Documentation

YCPList Y2WFMComponent::argumentlist [private]
 

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.

Y2WFMComponent * Y2WFMComponent::current_wfm = 0 [static, private]
 

string Y2WFMComponent::currentEncoding [private]
 

string Y2WFMComponent::currentLanguage [private]
 

int Y2WFMComponent::default_handle [private]
 

Handle of default SCR instance.

string Y2WFMComponent::environmentEncoding [private]
 

environment encoding

int Y2WFMComponent::handle_cnt [private]
 

Handle count.

WFMSubAgent Y2WFMComponent::local [private]
 

The local system agent.

string Y2WFMComponent::modulename [private]
 

The name of the module that is realized by this wfm.

WFMSubAgents Y2WFMComponent::scrs [private]
 

string Y2WFMComponent::systemEncoding [private]
 

system encoding


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6