Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

DCOPObjectProxy Class Reference

#include <dcopobject.h>

Inheritance diagram for DCOPObjectProxy:

KDCOPActionProxy List of all members.

Public Methods

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

Detailed Description

You must use a proxy if you want to dispatch method calls for object IDs which dont have (yet) a corresponding DCOPObject. This is somewhat like virtual object references in CORBA.

See also:
DCOPObject , DCOPClient
Author:
Matthias Ettrich <ettrich@kde.org>

Definition at line 350 of file dcopobject.h.


Constructor & Destructor Documentation

DCOPObjectProxy::DCOPObjectProxy  
 

Creates a new proxy.

DCOPObjectProxy::DCOPObjectProxy DCOPClient  
 

Obsolete, do not use. DCOP clients know about object proxies automatically.

Deprecated:

virtual DCOPObjectProxy::~DCOPObjectProxy   [virtual]
 

Destroy the proxy.


Member Function Documentation

virtual bool DCOPObjectProxy::process const QCString &    obj,
const QCString &    fun,
const QByteArray &    data,
QCString &    replyType,
QByteArray &    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:
fun  is the normalized function signature. Such a signature usually looks like foobar(QString,int). The return type, qualifiers like "const" etc. are not part of the signature.
data  the received data
replyType  write the reply type in this string
replyData  write the reply data in this array
Returns:
true if successful, false otherwise. The default implementation returns always false.

Reimplemented in KDCOPActionProxy.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:03 2003 for kdelibs by doxygen1.2.18