class DCOPStub

# class DCOPStub |
Definition | `#include <dcopstub.h>`
Annotated List
Files
Globals
Hierarchy
Index
Main

#### Public Types

- enum Status {CallSucceeded, CallFailed }

#### Public Methods

- DCOPStub ( const QCString& app, const QCString& obj )
- DCOPStub ( DCOPClient* client, const QCString& app, const QCString& obj )
- virtual ~ DCOPStub ()
- QCString app () const
- QCString obj () const
- Status status () const
- bool ok () const
- protected: /** Sets the status to status. Possible values are 'CallSucceeded' and 'CallFailed' */ void setStatus ( Status _status )
- virtual void callFailed ()
- DCOPClient* dcopClient ()

## Detailed Description

Abstract base class for dcop stubs as created by the dcopidl2cpp compiler

DCOPStub ( const QCString& app, const QCString& obj )

Creates a DCOPStub for application `app` and object `obj`

DCOPStub ( DCOPClient* client, const QCString& app, const QCString& obj )

Creates a DCOPStub for application `app` and object `obj` that operates on the DCOPClient `client`

~ DCOPStub ()

[virtual]

QCString app ()

[const]

Return the application id.

QCString obj ()

[const]

Return the object id.

enum Status {CallSucceeded, CallFailed }

Status status ()

[const]

Return the status of the last call, either `CallSucceeded` or `CallFailed`

See ok();

bool ok ()

[const]

Return whether no error occured

See status();

protected: /** Sets the status to status. Possible values are 'CallSucceeded' and 'CallFailed' */ void setStatus ( Status _status )

void callFailed ()

[virtual]

Invoked whenever a call fails. The default implementation sets the status to CallFailed.

DCOPClient* dcopClient ()

The dcopClient this stub operates on. Either the specific one specified in the constructor or DCOPClient::mainClient.