yast2-core
|
An interface class between YaST2 and Ini Agent. More...
#include <IniAgent.h>
Public Member Functions | |
IniAgent () | |
virtual | ~IniAgent () |
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) |
![]() | |
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 () |
void | setAsCurrentSCR () |
Private Member Functions | |
YCPTerm | generateSysConfigTemplate (string fn) |
Private Attributes | |
IniParser | parser |
Additional Inherited Members | |
![]() | |
static YCPValue | readconf (const char *filename) |
static SCRAgent * | instance () |
![]() | |
SCRAgent * | mainscragent |
An interface class between YaST2 and Ini Agent.
IniAgent::IniAgent | ( | ) |
Default constructor.
Constructor
|
virtual |
Provides SCR Write ().
Dir
Implements SCRAgent.
References IniSection::Dir(), IniParser::inifile, IniParser::isStarted(), parser, IniParser::UpdateIfModif(), and y2warning.
|
private |
Agent private members
References YCPTerm::add(), YCPMap::add(), and YCPList::add().
Referenced by otherCommand().
Used for mounting the agent.
otherCommand
Reimplemented from SCRAgent.
References generateSysConfigTemplate(), IniParser::initFiles(), IniParser::initMachine(), YCPTerm::name(), IniParser::parse(), parser, YCPTerm::size(), YCPTerm::value(), and YCPError().
|
virtual |
Provides SCR Read ().
path | Path that should be read. |
arg | Additional parameter. |
Read
Implements SCRAgent.
References IniParser::HaveRewrites(), IniParser::inifile, IniParser::isStarted(), parser, IniSection::Read(), IniParser::UpdateIfModif(), and y2warning.
|
virtual |
Provides SCR Write ().
Write
Implements SCRAgent.
References IniSection::clean(), IniSection::Delete(), IniParser::deleted_sections, IniParser::getFileName(), IniSection::getSubSectionRewriteBy(), IniParser::HaveRewrites(), IniParser::inifile, IniParser::isStarted(), parser, IniParser::repeatNames(), IniBase::setDirty(), IniParser::write(), IniSection::Write(), y2warning, and ycp2error.
|
private |
Referenced by Dir(), otherCommand(), Read(), Write(), and ~IniAgent().