Home · All Classes · All Namespaces · Modules · Functions · Files |
The MethodInvocationContext class provides a way for the service implementation to respond to method calls. More...
#include <TelepathyQt4/MethodInvocationContext>
Inherits Tp::RefCounted.
The MethodInvocationContext class provides a way for the service implementation to respond to method calls.
The methods setFinished() and setFinishedWithError() can be used to indicate whether the method call succeeded or failed.
If neither setFinished() nor setFinishedWithError() is called explicitly, the method call will be considered to have failed.
" In case an asynchronous operation needs to be performed when implementing a method call receiving a MethodInvocationContextPtr object, a reference to this object may be kept around until all asynchronous operations finish, and the appropriate finish method should be called to indicate whether the method call succeeded or failed later.
Tp::MethodInvocationContext::MethodInvocationContext | ( | const QDBusConnection & | bus, |
const QDBusMessage & | message | ||
) | [inline] |
virtual Tp::MethodInvocationContext::~MethodInvocationContext | ( | ) | [inline, virtual] |
bool Tp::MethodInvocationContext::isFinished | ( | ) | const [inline] |
bool Tp::MethodInvocationContext::isError | ( | ) | const [inline] |
QString Tp::MethodInvocationContext::errorName | ( | ) | const [inline] |
QString Tp::MethodInvocationContext::errorMessage | ( | ) | const [inline] |
void Tp::MethodInvocationContext::setFinished | ( | const T1 & | t1 = T1() , |
const T2 & | t2 = T2() , |
||
const T3 & | t3 = T3() , |
||
const T4 & | t4 = T4() , |
||
const T5 & | t5 = T5() , |
||
const T6 & | t6 = T6() , |
||
const T7 & | t7 = T7() , |
||
const T8 & | t8 = T8() |
||
) | [inline] |
void Tp::MethodInvocationContext::setFinishedWithError | ( | const QString & | errorName, |
const QString & | errorMessage | ||
) | [inline] |
Select<Index>::Type Tp::MethodInvocationContext::argumentAt | ( | ) | const [inline] |
virtual void Tp::MethodInvocationContext::onFinished | ( | ) | [inline, protected, virtual] |
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt4 0.8.0 |