DbusAgent Class Reference

SCR Agent for DBus commands. More...

#include <DbusAgent.h>

Inheritance diagram for DbusAgent:

SCRAgent

List of all members.

Public Member Functions

 DbusAgent ()
 ~DbusAgent ()
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)

Private Attributes

DBusConnection * connection
DBusError error


Detailed Description

SCR Agent for DBus commands.

aschnell: WARNING: This agent was written in a hurry for exactly one single purpose (acquire global HAL interface lock). Likely use for other commands is not possible but I'm confident the agent can be extended at the sacrifice of changing the API.


Constructor & Destructor Documentation

DbusAgent::DbusAgent (  ) 

References connection, error, y2error, and y2milestone.

DbusAgent::~DbusAgent (  ) 


Member Function Documentation

YCPValue DbusAgent::Read ( const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue opt = YCPNull() 
) [virtual]

Read data

Implements SCRAgent.

References y2debug, ycp2error, and YCPError().

YCPBoolean DbusAgent::Write ( const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull() 
) [virtual]

Write data

Implements SCRAgent.

References y2debug, and ycp2error.

YCPValue DbusAgent::Execute ( const YCPPath path,
const YCPValue value = YCPNull(),
const YCPValue arg = YCPNull() 
) [virtual]

Execute a command

Execute(.dbus.method, map params, list args) -> boolean

params must contain parameters for dbus_message_new_method_call() and args must contain arguments for dbus method call.

Reimplemented from SCRAgent.

References YCPList::begin(), connection, YCPList::end(), error, YCPElement::isNull(), YCPMap::value(), y2debug, and YCPError().

virtual YCPList DbusAgent::Dir ( const YCPPath path  )  [inline, virtual]

Get a list of all subtrees

Implements SCRAgent.


Member Data Documentation

DBusConnection* DbusAgent::connection [private]

Referenced by DbusAgent(), and Execute().

DBusError DbusAgent::error [private]

Referenced by DbusAgent(), and Execute().


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

Generated on Mon Feb 23 19:08:00 2009 for yast2-core by  doxygen 1.5.6