yast2-core
Public Member Functions | Private Types | Private Member Functions | Private Attributes
ProcessAgent Class Reference

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

#include <ProcessAgent.h>

Inheritance diagram for ProcessAgent:
SCRAgent

List of all members.

Public Member Functions

 ProcessAgent ()
virtual ~ProcessAgent ()
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 YCPValue Execute (const YCPPath &path, const YCPValue &value=YCPNull(), 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 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 Types

typedef map< pid_t, Process * > ProcessContainer

Private Member Functions

YCPValue ProcessOutput (std::string &output)

Private Attributes

ProcessContainer _processes

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 Process Agent.


Member Typedef Documentation

typedef map<pid_t, Process*> ProcessAgent::ProcessContainer
private

Agent private variables


Constructor & Destructor Documentation

ProcessAgent::ProcessAgent ( )

Default constructor.

Constructor

ProcessAgent::~ProcessAgent ( )
virtual

Destructor.

Destructor - release all processes

References _processes.


Member Function Documentation

virtual YCPList ProcessAgent::Dir ( const YCPPath path)
virtual

Provides SCR Dir ().

Implements SCRAgent.

virtual YCPValue ProcessAgent::Execute ( const YCPPath path,
const YCPValue value = YCPNull(),
const YCPValue arg = YCPNull() 
)
virtual

Provides SCR Execute ().

Reimplemented from SCRAgent.

YCPValue ProcessAgent::otherCommand ( const YCPTerm term)
virtual

Used for mounting the agent.

otherCommand

Reimplemented from SCRAgent.

References YCPTerm::name().

YCPValue ProcessAgent::ProcessOutput ( std::string &  output)
private
virtual YCPValue ProcessAgent::Read ( const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue opt = YCPNull() 
)
virtual

Provides SCR Read ().

Parameters:
pathPath that should be read.
argAdditional parameter.

Implements SCRAgent.

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

Provides SCR Write ().

Implements SCRAgent.


Member Data Documentation

ProcessContainer ProcessAgent::_processes
private

Referenced by ~ProcessAgent().


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

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