\section{KDCOPProperty\-Proxy Class Reference}
\label{classKDCOPPropertyProxy}\index{KDCOPPropertyProxy@{KDCOPPropertyProxy}}
The KDCOPProperty\-Proxy class provides an easy way to publish {\bf Qt} properties of a {\bf QObject} through DCOP.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDCOPProperty\-Proxy} ({\bf QObject} $\ast$object)
\begin{CompactList}\small\item\em Convenience constructor. \item\end{CompactList}\item 
{\bf $\sim$KDCOPProperty\-Proxy} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
bool {\bf is\-Property\-Request} (const  {\bf QCString} \&fun)
\begin{CompactList}\small\item\em Convenience method, when using this class as object. \item\end{CompactList}\item 
bool {\bf process\-Property\-Request} (const  {\bf QCString} \&fun, const  {\bf QByte\-Array} \&data, {\bf QCString} \&reply\-Type, {\bf QByte\-Array} \&reply\-Data)
\begin{CompactList}\small\item\em Convenience method, when using this class as object. \item\end{CompactList}\item 
{\bf QValue\-List}$<$ {\bf QCString} $>$ {\bf functions} ()
\begin{CompactList}\small\item\em Convenience method, when using this class as object. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QValue\-List}$<$ {\bf QCString} $>$ {\bf functions} ({\bf QObject} $\ast$object)
\begin{CompactList}\small\item\em Returns a semicolon-separated list of functions understood by the Property\-Proxy for the given {\bf QObject} argument. \item\end{CompactList}\item 
bool {\bf is\-Property\-Request} (const  {\bf QCString} \&fun, {\bf QObject} $\ast$object)
\begin{CompactList}\small\item\em Returns true if the method request in the fun argument matches the signature of the three standard property methods or set/get methods for the properties of the object argument. \item\end{CompactList}\item 
bool {\bf process\-Property\-Request} (const  {\bf QCString} \&fun, const  {\bf QByte\-Array} \&data, {\bf QCString} \&reply\-Type, {\bf QByte\-Array} \&reply\-Data, {\bf QObject} $\ast$object)
\begin{CompactList}\small\item\em Processes the given DCOP method request by translating the request into a set\-Property/property call on the given {\bf QObject} argument. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
The KDCOPProperty\-Proxy class provides an easy way to publish {\bf Qt} properties of a {\bf QObject} through DCOP. 

The class provides DCOP equivalents for the {\bf Qt} property methods set\-Property() , property() and property\-Names() and also provides automatic set/get methods for the properties of a {\bf QObject}. That means for example if your object provides a {\bf QString} property called foo , then KDCOPProperty\-Proxy translates DCOP calls \char`\"{}set\-Foo( QString )\char`\"{} and \char`\"{}QString foo()\char`\"{} automatically into the corresponding set\-Property/property calls. 



Definition at line 38 of file kdcoppropertyproxy.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!KDCOPPropertyProxy@{KDCOPPropertyProxy}}
\index{KDCOPPropertyProxy@{KDCOPPropertyProxy}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDCOPProperty\-Proxy::KDCOPProperty\-Proxy ({\bf QObject} $\ast$ {\em object})}\label{classKDCOPPropertyProxy_a0}


Convenience constructor. 

Use it if you want to use this class as object, in contrary to using the static methods of this class and providing a {\bf QObject} argument for each call. 

Definition at line 55 of file kdcoppropertyproxy.cpp.\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!~KDCOPPropertyProxy@{$\sim$KDCOPPropertyProxy}}
\index{~KDCOPPropertyProxy@{$\sim$KDCOPPropertyProxy}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDCOPProperty\-Proxy::$\sim${\bf KDCOPProperty\-Proxy} ()}\label{classKDCOPPropertyProxy_a1}


Destructor. 



Definition at line 61 of file kdcoppropertyproxy.cpp.

\subsection{Member Function Documentation}
\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!isPropertyRequest@{isPropertyRequest}}
\index{isPropertyRequest@{isPropertyRequest}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDCOPProperty\-Proxy::is\-Property\-Request (const {\bf QCString} \& {\em fun})}\label{classKDCOPPropertyProxy_a2}


Convenience method, when using this class as object. 

See documentation of the constructor and static is\-Property\-Request method. 

Definition at line 66 of file kdcoppropertyproxy.cpp.\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!processPropertyRequest@{processPropertyRequest}}
\index{processPropertyRequest@{processPropertyRequest}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDCOPProperty\-Proxy::process\-Property\-Request (const {\bf QCString} \& {\em fun}, const {\bf QByte\-Array} \& {\em data}, {\bf QCString} \& {\em reply\-Type}, {\bf QByte\-Array} \& {\em reply\-Data})}\label{classKDCOPPropertyProxy_a3}


Convenience method, when using this class as object. 

See documentation of the constructor and static process\-Property\-Request method. 

Definition at line 71 of file kdcoppropertyproxy.cpp.\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!functions@{functions}}
\index{functions@{functions}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QValue\-List}$<$ {\bf QCString} $>$ KDCOPProperty\-Proxy::functions ()}\label{classKDCOPPropertyProxy_a4}


Convenience method, when using this class as object. 

See documentation of the constructor and static functions method. 

Definition at line 77 of file kdcoppropertyproxy.cpp.\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!functions@{functions}}
\index{functions@{functions}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QValue\-List}$<$ {\bf QCString} $>$ KDCOPProperty\-Proxy::functions ({\bf QObject} $\ast$ {\em object})\hspace{0.3cm}{\tt  [static]}}\label{classKDCOPPropertyProxy_e0}


Returns a semicolon-separated list of functions understood by the Property\-Proxy for the given {\bf QObject} argument. 

Returns \char`\"{}property(QCString);set\-Property(QCString,QVariant);property\-Names();\char`\"{} plus set/get methods for the properties of the given object argument.

\begin{Desc}
\item[See also:]{\bf DCOPObject::functions()} \end{Desc}


Definition at line 94 of file kdcoppropertyproxy.cpp.

References QMeta\-Object::find\-Property(), QObject::meta\-Object(), KStd\-Action::name(), QMeta\-Object::property(), QMeta\-Object::property\-Names(), QMeta\-Property::type(), and QMeta\-Property::writable().\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!isPropertyRequest@{isPropertyRequest}}
\index{isPropertyRequest@{isPropertyRequest}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDCOPProperty\-Proxy::is\-Property\-Request (const {\bf QCString} \& {\em fun}, {\bf QObject} $\ast$ {\em object})\hspace{0.3cm}{\tt  [static]}}\label{classKDCOPPropertyProxy_e1}


Returns true if the method request in the fun argument matches the signature of the three standard property methods or set/get methods for the properties of the object argument. 

Use this method in your own {\bf DCOPObject} dispatcher to check if the DCOP request is a property request which can be handled by this class. 

Definition at line 82 of file kdcoppropertyproxy.cpp.\index{KDCOPPropertyProxy@{KDCOPProperty\-Proxy}!processPropertyRequest@{processPropertyRequest}}
\index{processPropertyRequest@{processPropertyRequest}!KDCOPPropertyProxy@{KDCOPProperty\-Proxy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDCOPProperty\-Proxy::process\-Property\-Request (const {\bf QCString} \& {\em fun}, const {\bf QByte\-Array} \& {\em data}, {\bf QCString} \& {\em reply\-Type}, {\bf QByte\-Array} \& {\em reply\-Data}, {\bf QObject} $\ast$ {\em object})\hspace{0.3cm}{\tt  [static]}}\label{classKDCOPPropertyProxy_e2}


Processes the given DCOP method request by translating the request into a set\-Property/property call on the given {\bf QObject} argument. 



Definition at line 128 of file kdcoppropertyproxy.cpp.

References QValue\-List::append(), QObject::meta\-Object(), QVariant::name\-To\-Type(), QObject::property(), QObject::set\-Property(), QVariant::to\-Bool(), QVariant::to\-Icon\-Set(), QVariant::type(), and QVariant::type\-Name().

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