class DCOPRef

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

#### Public Methods

- DCOPRef ()
- DCOPRef ( const DCOPRef& ref )
- DCOPRef ( const QCString& app, const QCString& obj )
- DCOPRef ( const QCString& app, const QCString& obj, const QCString& type )
- bool isNull () const
- QCString app () const
- QCString object () const
- QCString type () const
- DCOPRef& operator= ( const DCOPRef& )
- void setRef ( const QCString& app, const QCString& obj )
- void setRef ( const QCString& app, const QCString& obj, const QCString& type )
- void clear ()

## Detailed Description

If you want to return a reference to another DCOP object in a DCOP interface, then you have to return a DCOPRef object.

DCOPRef ()

Create a null reference.

DCOPRef ( const DCOPRef& ref )

Copy constructor.

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

Create a reference to a certain object in a certain application.

Parameters:

app | The name of an application as registered by the dcopserver.

DCOPRef ( const QCString& app, const QCString& obj, const QCString& type )

Create a reference to a certain object in a certain application.

Parameters:

app | The name of an application as registered by the dcopserver.

bool isNull ()

[const]

Test wether it is a null reference.

QCString app ()

[const]

Name of the application in which the object resides.

QCString object ()

[const]

Object ID of the referenced object.

QCString type ()

[const]

type of the referenced object. May be null (i.e. unknown).

DCOPRef& operator= ( const DCOPRef& )

void setRef ( const QCString& app, const QCString& obj )

Change the referenced object. Resets the type to unknown (null).

void setRef ( const QCString& app, const QCString& obj, const QCString& type )

Change the referenced object

void clear ()

Make it a null reference.