MRemoteAction implements a MAction that executes a D-Bus call when triggered. The D-Bus related parameters can be serialized and unserialized into a string.
More...
Inherits MAction.
List of all members.
Detailed Description
MRemoteAction implements a MAction that executes a D-Bus call when triggered. The D-Bus related parameters can be serialized and unserialized into a string.
Constructor & Destructor Documentation
Constructs a MRemoteAction from a D-Bus service path, object path, interface and arguments.
- Parameters:
-
| serviceName | the service path of the D-Bus object to be called |
| objectPath | the object path of the D-Bus object to be called |
| interface | the interface of the D-Bus object to be called |
| methodName | the name of the D-Bus method to call |
| arguments | the arguments of the D-Bus call. Defaults to no arguments. |
| parent | Parent object |
Constructs a MRemoteAction from a string representation of a D-Bus remote action acquired with toString().
- Parameters:
-
MRemoteAction::~MRemoteAction |
( |
|
) |
[virtual] |
Member Function Documentation
void MRemoteAction::call |
( |
|
) |
[protected, slot] |
A slot for calling the D-Bus function when the action is triggered.
void MRemoteAction::fromString |
( |
const QString & |
string |
) |
[protected] |
Initializes the MRemoteAction from a string representation.
- Parameters:
-
| string | a string representation of a remote action |
QString MRemoteAction::toString |
( |
|
) |
const |
Returns a string representation of this remote action.
- Returns:
- a string representation of this remote action