Home · All Classes · Main Classes · Deprecated
Public Member Functions | Protected Slots | Protected Member Functions

MRemoteAction Class Reference

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.

Public Member Functions

 MRemoteAction (const QString &serviceName, const QString &objectPath, const QString &interface, const QString &methodName, const QList< QVariant > &arguments=QList< QVariant >(), QObject *parent=NULL)
 MRemoteAction (const QString &string=QString(), QObject *parent=NULL)
 MRemoteAction (const MRemoteAction &action)
virtual ~MRemoteAction ()
QString toString () const

Protected Slots

void call ()

Protected Member Functions

void fromString (const QString &string)

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

MRemoteAction::MRemoteAction ( const QString serviceName,
const QString objectPath,
const QString interface,
const QString methodName,
const QList< QVariant > &  arguments = QList<QVariant>(),
QObject parent = NULL 
) [explicit]

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
MRemoteAction::MRemoteAction ( const QString string = QString(),
QObject parent = NULL 
) [explicit]

Constructs a MRemoteAction from a string representation of a D-Bus remote action acquired with toString().

Parameters:
string the QString to construct the MRemoteAction from
parent Parent object
MRemoteAction::MRemoteAction ( const MRemoteAction action  ) 

Constructs a copy of another MRemoteAction.

Parameters:
action the MRemoteAction to copy
MRemoteAction::~MRemoteAction (  )  [virtual]

Destroys the MRemoteAction.


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

Copyright © 2010 Nokia Corporation
MeeGo Touch