WFMSubAgent Class Reference

#include <WFMSubAgent.h>

List of all members.

Public Member Functions

 WFMSubAgent (const string &, int)
 ~WFMSubAgent ()
bool start ()
bool start_and_check (bool, int *)
string get_name () const
int get_handle () const
Y2Componentcomp ()
SCRAgentagent ()

Private Member Functions

 WFMSubAgent (const WFMSubAgent &)
void operator= (const WFMSubAgent &)

Private Attributes

const string my_name
const int my_handle
Y2Componentmy_comp
SCRAgentmy_agent


Detailed Description

A simple class handling a agent.


Constructor & Destructor Documentation

WFMSubAgent::WFMSubAgent const string &  ,
int 
 

Constructor for a subagent. Takes the name and handle as arguments.

WFMSubAgent::~WFMSubAgent  ) 
 

Destructor for a subagent. Terminates the Y2Component if necessary.

WFMSubAgent::WFMSubAgent const WFMSubAgent  )  [private]
 


Member Function Documentation

SCRAgent* WFMSubAgent::agent  )  [inline]
 

Returns the SCRAgent of the subagent. This does not call start (). Is 0 if start () was not called or failed or the Y2Component does not support the getSCRAgent () function.

Y2Component* WFMSubAgent::comp  )  [inline]
 

Returns the Y2Component of the subagent. This does not call start (). Is 0 if start () was not called or failed.

int WFMSubAgent::get_handle  )  const [inline]
 

Returns the handle of the subagent.

string WFMSubAgent::get_name  )  const [inline]
 

Returns the name of the subagent.

void WFMSubAgent::operator= const WFMSubAgent  )  [private]
 

bool WFMSubAgent::start  ) 
 

Starts the subagent. Returns true on success otherwise false.

bool WFMSubAgent::start_and_check bool  ,
int * 
 

Starts the subagent and evaluates one term to ensure that the component is created (mainly for remote components). Can also check for the correct SuSE Version. Returns true on success otherwise false and sets the error number.


Member Data Documentation

SCRAgent* WFMSubAgent::my_agent [private]
 

The agent if component does not provide one

Y2Component* WFMSubAgent::my_comp [private]
 

The component.

const int WFMSubAgent::my_handle [private]
 

The handle.

const string WFMSubAgent::my_name [private]
 

The name.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6