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) |
Private Attributes | |
| ModulesConf * | modules_conf |
An interface class between YaST2 and modules.conf.
| ModulesAgent::ModulesAgent | ( | ) |
Default constructor.
Constructor
| ModulesAgent::~ModulesAgent | ( | ) | [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(), YCPTerm::value(), and Y2_RETURN_VOID.
| YCPValue ModulesAgent::Read | ( | const YCPPath & | path, | |
| const YCPValue & | arg = YCPNull(), |
|||
| const YCPValue & | optarg = YCPNull() | |||
| ) | [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.
| YCPBoolean ModulesAgent::Write | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull() | |||
| ) | [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().
ModulesConf* ModulesAgent::modules_conf [private] |
Referenced by Dir(), otherCommand(), Read(), Write(), and ~ModulesAgent().
1.6.3