#include <DbusAgent.h>

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 |
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.
| DbusAgent::DbusAgent | ( | ) |
References connection, error, y2error, and y2milestone.
| DbusAgent::~DbusAgent | ( | ) |
| YCPBoolean DbusAgent::Write | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull() | |||
| ) | [virtual] |
| 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().
Get a list of all subtrees
Implements SCRAgent.
DBusConnection* DbusAgent::connection [private] |
Referenced by DbusAgent(), and Execute().
DBusError DbusAgent::error [private] |
Referenced by DbusAgent(), and Execute().
1.5.6