• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • dcop
 

dcop

Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
DCOPStub Class Reference

#include <dcopstub.h>

Public Types

enum  Status { CallSucceeded , CallFailed }
 

Public Member Functions

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

Protected Types

enum  never_use_t { never_use }
 

Protected Member Functions

void setStatus (Status _status)
 
virtual void callFailed ()
 
DCOPClient * dcopClient ()
 
 DCOPStub (never_use_t)
 
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

◆ never_use_t

enum DCOPStub::never_use_t
protected

Definition at line 127 of file dcopstub.h.

◆ Status

enum DCOPStub::Status

Definition at line 78 of file dcopstub.h.

Constructor & Destructor Documentation

◆ DCOPStub() [1/4]

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

Creates a DCOPStub for application app and object obj.

Parameters
appthe application id
objthe object id

Definition at line 36 of file dcopstub.cpp.

◆ DCOPStub() [2/4]

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

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

Parameters
clientthe DCOPClient
appthe application id
objthe object id

Definition at line 41 of file dcopstub.cpp.

◆ DCOPStub() [3/4]

DCOPStub::DCOPStub ( const DCOPRef &  ref)
explicit

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

Parameters
refthe DCOP reference

Definition at line 50 of file dcopstub.cpp.

◆ ~DCOPStub()

DCOPStub::~DCOPStub ( )
virtual

Definition at line 55 of file dcopstub.cpp.

◆ DCOPStub() [4/4]

DCOPStub::DCOPStub ( never_use_t  )
inlineprotected

Definition at line 132 of file dcopstub.h.

Member Function Documentation

◆ app()

TQCString DCOPStub::app ( ) const

Return the application id.

Returns
the application id

Definition at line 87 of file dcopstub.cpp.

◆ callFailed()

void DCOPStub::callFailed ( )
protectedvirtual

Invoked whenever a call fails.

The default implementation sets the status to CallFailed.

Definition at line 82 of file dcopstub.cpp.

◆ dcopClient()

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.

◆ obj()

TQCString DCOPStub::obj ( ) const

Return the object id.

Returns
the object id

Definition at line 92 of file dcopstub.cpp.

◆ ok()

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.

◆ setStatus()

void DCOPStub::setStatus ( Status  _status)
protected

Sets the status to status.

Possible values are 'CallSucceeded' and 'CallFailed'

Parameters
_statusthe new status
See also
status()

Definition at line 72 of file dcopstub.cpp.

◆ status()

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.

◆ virtual_hook()

void DCOPStub::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

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
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

dcop

Skip menu "dcop"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for dcop by doxygen 1.9.4
This website is maintained by Timothy Pearson.