yast2-core
|
#include <StdioSCRAgent.h>
Public Member Functions | |
StdioSCRAgent (Y2Component *handler) | |
~StdioSCRAgent () | |
virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
virtual YCPList | Dir (const YCPPath &path) |
virtual YCPValue | Execute (const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull()) |
virtual YCPMap | Error (const YCPPath &path) |
virtual YCPBoolean | RegisterAgent (const YCPPath &path, const YCPValue &value) |
virtual YCPBoolean | UnregisterAgent (const YCPPath &path) |
YCPValue | otherCommand (const YCPTerm &term) |
![]() | |
SCRAgent () | |
virtual | ~SCRAgent () |
virtual YCPBoolean | UnregisterAllAgents () |
virtual YCPBoolean | UnmountAgent (const YCPPath &) |
virtual YCPBoolean | RegisterNewAgents () |
virtual const char * | root () const |
void | setAsCurrentSCR () |
string | targetPath (const string &path) const |
Private Attributes | |
Y2Component * | m_handler |
Additional Inherited Members | |
![]() | |
static YCPValue | readconf (const char *filename) |
static SCRAgent * | instance () |
![]() | |
SCRAgent * | mainscragent |
This agent is a proxy, which transforms a direct builtin call into Y2Component::evaluate () call.
|
inline |
|
inline |
Get a list of all subtrees.
Implements SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
Get a detailed error description if a previous command failed
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
|
virtual |
Executes a command.
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, and y2debug.
|
virtual |
Reads data. Destroy the result after use.
path | Specifies what part of the subtree should be read. The path is specified relatively to Root()! |
Implements SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, and y2debug.
|
virtual |
Register an agent
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
|
virtual |
Unregister an agent
Reimplemented from SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
|
virtual |
Writes data. Destroy the result after use.
Implements SCRAgent.
References YCPTerm::add(), Y2Component::evaluate(), YCPElement::isNull(), m_handler, y2debug, and ycp2error.
|
private |
Referenced by Dir(), Error(), Execute(), otherCommand(), Read(), RegisterAgent(), UnregisterAgent(), and Write().