KDSoapPendingCallWatcher Class Reference

#include <KDSoapPendingCallWatcher.h>

Inheritance diagram for KDSoapPendingCallWatcher:
KDSoapPendingCall

List of all members.

Signals

void finished (KDSoapPendingCallWatcher *self)

Public Member Functions

 KDSoapPendingCallWatcher (const KDSoapPendingCall &call, QObject *parent=0)
 ~KDSoapPendingCallWatcher ()

Detailed Description

The KDSoapPendingCallWatcher class provides a convenient way for waiting for asynchronous replies.

KDSoapPendingCallWatcher provides the finished() signal that will be emitted when a reply arrives.

It is usually used like the following example:

  KDSoapPendingCall pendingCall = client.asyncCall(QLatin1String("MethodName"), message);
  KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);

  QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
                   this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
Note:
It is not necessary to keep the original KDSoapPendingCall object around since KDSoapPendingCallWatcher inherits from that class too.

Constructor & Destructor Documentation

KDSoapPendingCallWatcher::KDSoapPendingCallWatcher ( const KDSoapPendingCall call,
QObject *  parent = 0 
) [explicit]

Creates a KDSoapPendingCallWatcher object to watch for replies on the asynchronous pending call call and sets this object's parent to parent.

KDSoapPendingCallWatcher::~KDSoapPendingCallWatcher (  ) 

Destroys this object. If this KDSoapPendingCallWatcher object was the last reference to the unfinished pending call, the call will be canceled.


Member Function Documentation

void KDSoapPendingCallWatcher::finished ( KDSoapPendingCallWatcher self  )  [signal]

This signal is emitted when the pending call has finished and its reply is available. The self parameter is a pointer to the object itself, passed for convenience so that the slot can access the properties and determine the contents of the reply.


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations Enumerator Friends

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/