yast2-core
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IniAgent Class Reference

An interface class between YaST2 and Ini Agent. More...

#include <IniAgent.h>

Inheritance diagram for IniAgent:
SCRAgent

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)
 
- 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 ()
 
void setAsCurrentSCR ()
 

Private Member Functions

YCPTerm generateSysConfigTemplate (string fn)
 

Private Attributes

IniParser parser
 

Additional Inherited Members

- Static Public Member Functions inherited from SCRAgent
static YCPValue readconf (const char *filename)
 
static SCRAgentinstance ()
 
- Public Attributes inherited from SCRAgent
SCRAgentmainscragent
 

Detailed Description

An interface class between YaST2 and Ini Agent.

Constructor & Destructor Documentation

IniAgent::IniAgent ( )

Default constructor.

Constructor

IniAgent::~IniAgent ( )
virtual

Destructor.

Destructor

References IniParser::isStarted(), parser, and IniParser::write().

Member Function Documentation

YCPList IniAgent::Dir ( const YCPPath path)
virtual
YCPTerm IniAgent::generateSysConfigTemplate ( string  fn)
private

Agent private members

References YCPTerm::add(), YCPMap::add(), and YCPList::add().

Referenced by otherCommand().

YCPValue IniAgent::otherCommand ( const YCPTerm term)
virtual
YCPValue IniAgent::Read ( const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue optarg = YCPNull() 
)
virtual

Provides SCR Read ().

Parameters
pathPath that should be read.
argAdditional parameter.

Read

Implements SCRAgent.

References IniParser::HaveRewrites(), IniParser::inifile, IniParser::isStarted(), parser, IniSection::Read(), IniParser::UpdateIfModif(), and y2warning.

YCPBoolean IniAgent::Write ( const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull() 
)
virtual

Member Data Documentation

IniParser IniAgent::parser
private

Referenced by Dir(), otherCommand(), Read(), Write(), and ~IniAgent().


The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.8.5