yast2-core
|
#include <WFMSubAgent.h>
Public Member Functions | |
WFMSubAgent (const string &, int) | |
~WFMSubAgent () | |
bool | start () |
string | get_name () const |
int | get_handle () const |
SCRAgent * | agent () |
Private Member Functions | |
WFMSubAgent (const WFMSubAgent &) | |
void | operator= (const WFMSubAgent &) |
Private Attributes | |
const string | my_name |
const int | my_handle |
Y2Component * | my_comp |
SCRAgent * | my_agent |
A simple class handling a agent.
WFMSubAgent::WFMSubAgent | ( | const string & | name, |
int | handle | ||
) |
Constructor for a subagent. Takes the name and handle as arguments.
References y2internal.
WFMSubAgent::~WFMSubAgent | ( | ) |
Destructor for a subagent. Terminates the Y2Component if necessary.
|
private |
|
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.
References Y2Component::getSCRAgent(), my_agent, and my_comp.
Referenced by Y2WFMComponent::createDefaultSCR(), Y2WFMComponent::Execute(), Y2WFMComponent::Read(), and Y2WFMComponent::Write().
|
inline |
|
inline |
Returns the name of the subagent.
References my_name.
|
private |
bool WFMSubAgent::start | ( | ) |
Starts the subagent. Returns true on success otherwise false.
References Y2ComponentBroker::createServer(), my_comp, my_handle, my_name, and y2debug.
Referenced by Y2WFMComponent::createDefaultSCR(), Y2WFMComponent::Execute(), Y2WFMComponent::Read(), Y2WFMComponent::SCROpen(), and Y2WFMComponent::Write().
|
private |
The agent if component does not provide one
Referenced by agent().
|
private |
|
private |
The handle.
Referenced by get_handle(), and start().
|
private |
The name.
Referenced by get_name(), and start().