\section{DCOPObject\-Proxy Class Reference}
\label{classDCOPObjectProxy}\index{DCOPObjectProxy@{DCOPObjectProxy}}
You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a corresponding {\bf DCOPObject}{\rm (p.\,\pageref{classDCOPObject})}.  


{\tt \#include $<$dcopobject.h$>$}

Collaboration diagram for DCOPObject\-Proxy:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=106pt]{classDCOPObjectProxy__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf DCOPObject\-Proxy} ()
\item 
{\bf DCOPObject\-Proxy} ({\bf DCOPClient} $\ast$)
\item 
virtual {\bf $\sim$DCOPObject\-Proxy} ()
\item 
virtual bool {\bf process} (const {\bf QCString} \&obj, const {\bf QCString} \&fun, const {\bf QByte\-Array} \&data, {\bf QCString} \&reply\-Type, {\bf QByte\-Array} \&reply\-Data)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classDCOPObjectProxy_b0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf DCOPClient}\label{classDCOPObjectProxy_n0}

\end{CompactItemize}


\subsection{Detailed Description}
You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a corresponding {\bf DCOPObject}{\rm (p.\,\pageref{classDCOPObject})}. 

This is somewhat like virtual object references in CORBA.

\begin{Desc}
\item[See also:]{\bf DCOPObject}{\rm (p.\,\pageref{classDCOPObject})} 

{\bf DCOPClient}{\rm (p.\,\pageref{classDCOPClient})} \end{Desc}
\begin{Desc}
\item[Author:]Matthias Ettrich $<${\tt ettrich@kde.org}$>$ \end{Desc}




Definition at line 352 of file dcopobject.h.

\subsection{Constructor \& Destructor Documentation}
\index{DCOPObjectProxy@{DCOPObject\-Proxy}!DCOPObjectProxy@{DCOPObjectProxy}}
\index{DCOPObjectProxy@{DCOPObjectProxy}!DCOPObjectProxy@{DCOPObject\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DCOPObject\-Proxy::DCOPObject\-Proxy ()}\label{classDCOPObjectProxy_a0}


Creates a new proxy. 



Definition at line 250 of file dcopobject.cpp.

References QPtr\-List::append().\index{DCOPObjectProxy@{DCOPObject\-Proxy}!DCOPObjectProxy@{DCOPObjectProxy}}
\index{DCOPObjectProxy@{DCOPObjectProxy}!DCOPObjectProxy@{DCOPObject\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DCOPObject\-Proxy::DCOPObject\-Proxy ({\bf DCOPClient} $\ast$)}\label{classDCOPObjectProxy_a1}


Obsolete, do not use. 

DCOP clients know about object proxies automatically.

\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 257 of file dcopobject.cpp.

References QPtr\-List::append().\index{DCOPObjectProxy@{DCOPObject\-Proxy}!~DCOPObjectProxy@{$\sim$DCOPObjectProxy}}
\index{~DCOPObjectProxy@{$\sim$DCOPObjectProxy}!DCOPObjectProxy@{DCOPObject\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DCOPObject\-Proxy::$\sim${\bf DCOPObject\-Proxy} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classDCOPObjectProxy_a2}


Destroy the proxy. 



Definition at line 264 of file dcopobject.cpp.

References QPtr\-List::remove\-Ref().

\subsection{Member Function Documentation}
\index{DCOPObjectProxy@{DCOPObject\-Proxy}!process@{process}}
\index{process@{process}!DCOPObjectProxy@{DCOPObject\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool DCOPObject\-Proxy::process (const {\bf QCString} \& {\em obj}, const {\bf QCString} \& {\em fun}, const {\bf QByte\-Array} \& {\em data}, {\bf QCString} \& {\em reply\-Type}, {\bf QByte\-Array} \& {\em reply\-Data})\hspace{0.3cm}{\tt  [virtual]}}\label{classDCOPObjectProxy_a3}


Reimplement this method to dispatch method calls. 

This method is called of all proxies if the {\bf DCOPClient}{\rm (p.\,\pageref{classDCOPClient})} knows no object with the id {\tt obj}. If the first proxy returns {\tt true}, the {\bf DCOPClient}{\rm (p.\,\pageref{classDCOPClient})} will no longer call other proxies.

The object id {\tt obj} may be empty for app-wide function calls no associated with any object. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em obj}]the id of the object \item[{\em fun}]is the normalized function signature. Such a signature usually looks like foobar(QString,int). The return type, qualifiers like \char`\"{}const\char`\"{} etc. are not part of the signature. \item[{\em data}]the received data \item[{\em reply\-Type}]write the reply type in this string \item[{\em reply\-Data}]write the reply data in this array \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if successful, false otherwise. The default implementation returns always false. \end{Desc}


Definition at line 270 of file dcopobject.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
dcopobject.h\item 
dcopobject.cpp\end{CompactItemize}
