|
yast2-core
|
An interface class between YaST2 and modules.conf. More...
#include <ModulesAgent.h>
Public Member Functions | |
| ModulesAgent () | |
| virtual | ~ModulesAgent () |
| virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &optarg=YCPNull()) |
| virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
| virtual YCPList | Dir (const YCPPath &path) |
| virtual YCPValue | otherCommand (const YCPTerm &term) |
Public Member Functions inherited from SCRAgent | |
| SCRAgent () | |
| virtual | ~SCRAgent () |
| virtual YCPValue | Execute (const YCPPath &path, const YCPValue &=YCPNull(), const YCPValue &=YCPNull()) |
| virtual YCPMap | Error (const YCPPath &) |
| virtual YCPBoolean | RegisterAgent (const YCPPath &path, const YCPValue &) |
| virtual YCPBoolean | UnregisterAgent (const YCPPath &path) |
| 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 | |
| ModulesConf * | modules_conf |
Additional Inherited Members | |
Static Public Member Functions inherited from SCRAgent | |
| static YCPValue | readconf (const char *filename) |
| static SCRAgent * | instance () |
Public Attributes inherited from SCRAgent | |
| SCRAgent * | mainscragent |
An interface class between YaST2 and modules.conf.
| ModulesAgent::ModulesAgent | ( | ) |
Default constructor.
Constructor
|
virtual |
Provides SCR Write ().
Dir
Implements SCRAgent.
References ModulesConf::getDirectives(), ModulesConf::getModules(), ModulesConf::getOptions(), MAGIC_DIRECTIVE, map2list(), modules_conf, PC, Y2_RETURN_VOID, and ycp2error.
Used for mounting the agent.
otherCommand
Reimplemented from SCRAgent.
References modules_conf, YCPTerm::name(), YCPTerm::size(), SCRAgent::targetPath(), YCPTerm::value(), and Y2_RETURN_VOID.
|
virtual |
Provides SCR Read ().
| path | Path that should be read. |
| arg | Additional parameter. |
Read
Implements SCRAgent.
References ModulesConf::getArgument(), ModulesConf::getComment(), ModulesConf::getDirectives(), ModulesConf::getModules(), ModulesConf::getOption(), ModulesConf::getOptions(), YCPElement::isNull(), map2list(), map2ycpmap(), modules_conf, PC, VAL2STR, Y2_RETURN_VOID, y2debug, and y2error.
|
virtual |
Provides SCR Write ().
Write
Implements SCRAgent.
References YCPElement::isNull(), modules_conf, PC, ModulesConf::removeEntry(), ModuleEntry::SET, ModulesConf::setArgument(), ModulesConf::setComment(), ModulesConf::setOption(), ModulesConf::setOptions(), VAL2STR, ModulesConf::writeFile(), Y2_RETURN_VOID, Y2_RETURN_YCP_FALSE, y2error, and ycpmap2map().
|
private |
Referenced by Dir(), otherCommand(), Read(), Write(), and ~ModulesAgent().
1.8.6