• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

dcop

DCOPStub Class Reference

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

#include <dcopstub.h>

List of all members.


Public Types

enum  Status { CallSucceeded, CallFailed }

Public Member Functions

QCString app () const
 DCOPStub (const DCOPRef &ref)
 DCOPStub (DCOPClient *client, const QCString &app, const QCString &obj)
 DCOPStub (const QCString &app, const QCString &obj)
QCString obj () const
bool ok () const
Status status () const
virtual ~DCOPStub ()

Protected Types

enum  never_use_t { never_use }

Protected Member Functions

virtual void callFailed ()
DCOPClient * dcopClient ()
 DCOPStub (never_use_t)
void setStatus (Status _status)
virtual void virtual_hook (int id, void *data)

Detailed Description

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

Definition at line 41 of file dcopstub.h.


Member Enumeration Documentation

enum DCOPStub::never_use_t [protected]

For internal use only.

Never use. Used only for default ctors of inherited stubs, because of the way ctors of virtual base classes work. Otherwise dcopidl2cpp would have to call ctors of all, even indirect, bases.

Since:
3.1

Enumerator:
never_use 

Definition at line 127 of file dcopstub.h.

enum DCOPStub::Status

Enumerator:
CallSucceeded 
CallFailed 

Definition at line 78 of file dcopstub.h.


Constructor & Destructor Documentation

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

Creates a DCOPStub for application app and object obj.

Parameters:
app the application id
obj the object id

Definition at line 36 of file dcopstub.cpp.

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

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

Parameters:
client the DCOPClient
app the application id
obj the object id

Definition at line 41 of file dcopstub.cpp.

DCOPStub::DCOPStub ( const DCOPRef &  ref  )  [explicit]

Creates a DCOPStub for application ref.app() and object ref.obj().

Parameters:
ref the DCOP reference

Definition at line 50 of file dcopstub.cpp.

DCOPStub::~DCOPStub (  )  [virtual]

Definition at line 55 of file dcopstub.cpp.

DCOPStub::DCOPStub ( never_use_t   )  [inline, protected]

For internal use only.

Since:
3.1

Definition at line 132 of file dcopstub.h.


Member Function Documentation

QCString DCOPStub::app (  )  const

Return the application id.

Returns:
the application id

Definition at line 87 of file dcopstub.cpp.

void DCOPStub::callFailed (  )  [protected, virtual]

Invoked whenever a call fails.

The default implementation sets the status to CallFailed.

Definition at line 82 of file dcopstub.cpp.

DCOPClient * DCOPStub::dcopClient (  )  [protected]

The dcopClient this stub operates on.

Either the specific one specified in the constructor or DCOPClient::mainClient.

Returns:
the stub's DCOPClient

Definition at line 60 of file dcopstub.cpp.

QCString DCOPStub::obj (  )  const

Return the object id.

Returns:
the object id

Definition at line 92 of file dcopstub.cpp.

bool DCOPStub::ok (  )  const

Return whether no error occurred,.

Returns:
true if the last call was successful, false otherwise
See also:
status();

Definition at line 77 of file dcopstub.cpp.

void DCOPStub::setStatus ( Status  _status  )  [protected]

Sets the status to status.

Possible values are 'CallSucceeded' and 'CallFailed'

Parameters:
_status the new status
See also:
status()

Definition at line 72 of file dcopstub.cpp.

DCOPStub::Status DCOPStub::status (  )  const

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

Returns:
the status of the last call
See also:
ok();

Definition at line 67 of file dcopstub.cpp.

void DCOPStub::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 97 of file dcopstub.cpp.


The documentation for this class was generated from the following files:
  • dcopstub.h
  • dcopstub.cpp

dcop

Skip menu "dcop"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal