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

dcop

Public Member Functions | Protected Member Functions | Friends | List of all members
DCOPObjectProxy Class Reference

#include <dcopobject.h>

Public Member Functions

 DCOPObjectProxy ()
 
 DCOPObjectProxy (DCOPClient *)
 
virtual ~DCOPObjectProxy ()
 
virtual bool process (const TQCString &obj, const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Friends

class DCOPClient
 

Detailed Description

You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a corresponding DCOPObject.

This is somewhat like virtual object references in CORBA.

See also
DCOPObject
DCOPClient
Author
Matthias Ettrich ettri.nosp@m.ch@k.nosp@m.de.or.nosp@m.g

Definition at line 352 of file dcopobject.h.

Constructor & Destructor Documentation

◆ DCOPObjectProxy() [1/2]

DCOPObjectProxy::DCOPObjectProxy ( )

Creates a new proxy.

Definition at line 250 of file dcopobject.cpp.

◆ DCOPObjectProxy() [2/2]

DCOPObjectProxy::DCOPObjectProxy ( DCOPClient *  )

Obsolete, do not use.

DCOP clients know about object proxies automatically.

Deprecated:

Definition at line 257 of file dcopobject.cpp.

◆ ~DCOPObjectProxy()

DCOPObjectProxy::~DCOPObjectProxy ( )
virtual

Destroy the proxy.

Definition at line 264 of file dcopobject.cpp.

Member Function Documentation

◆ process()

bool DCOPObjectProxy::process ( const TQCString &  obj,
const TQCString &  fun,
const TQByteArray &  data,
TQCString &  replyType,
TQByteArray &  replyData 
)
virtual

Reimplement this method to dispatch method calls.

This method is called of all proxies if the DCOPClient knows no object with the id obj. If the first proxy returns true, the DCOPClient will no longer call other proxies.

The object id obj may be empty for app-wide function calls no associated with any object.

Parameters
objthe id of the object
funis the normalized function signature. Such a signature usually looks like foobar(TQString,int). The return type, qualifiers like "const" etc. are not part of the signature.
datathe received data
replyTypewrite the reply type in this string
replyDatawrite the reply data in this array
Returns
true if successful, false otherwise. The default implementation returns always false.

Definition at line 270 of file dcopobject.cpp.

◆ virtual_hook()

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

Definition at line 282 of file dcopobject.cpp.

Friends And Related Function Documentation

◆ DCOPClient

friend class DCOPClient
friend

Definition at line 400 of file dcopobject.h.


The documentation for this class was generated from the following files:
  • dcopobject.h
  • dcopobject.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.