<HTML> <HEAD> <TITLE>class DCOPRef</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class DCOPRef</h1> </TD> <TD valign="top" align="right" colspan="1"> If you want to return a reference to another DCOP object in a DCOP interface, then you have to return a DCOPRef object. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="dcopref_h.html">dcopref.h</A>></code></TD></TR> <TR><TH><A HREF="full-list-DCOPRef.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">DCOPRef</A></b> () </LI> <LI> <b><A HREF="#ref2">DCOPRef</A></b> ( const <A HREF="DCOPRef.html">DCOPRef</A>& ref ) </LI> <LI> <b><A HREF="#ref3">DCOPRef</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj ) </LI> <LI> <b><A HREF="#ref4">DCOPRef</A></b> ( <A HREF="DCOPObject.html">DCOPObject</A> *object ) </LI> <LI> <b><A HREF="#ref5">DCOPRef</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& type ) </LI> <LI>bool <b><A HREF="#ref6">isNull</A></b> () const </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <b><A HREF="#ref7">app</A></b> () const </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <b><A HREF="#ref8">object</A></b> () const </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <b><A HREF="#ref9">type</A></b> () const </LI> <LI><A HREF="DCOPRef.html">DCOPRef</A>& <b><A HREF="#ref10">operator=</A></b> ( const <A HREF="DCOPRef.html">DCOPRef</A>& ) </LI> <LI>void <b><A HREF="#ref11">setRef</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj ) </LI> <LI>void <b><A HREF="#ref12">setRef</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& type ) </LI> <LI>void <b><A HREF="#ref13">clear</A></b> () </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> If you want to return a reference to another DCOP object in a DCOP interface, then you have to return a DCOPRef object. </p> <p></p> <A NAME="DCOPRef"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>DCOPRef</strong> () <br></td><td align="right"><h3><strong>DCOPRef</strong></h3></td></tr></table><p></p><p> Create a null reference. </p> <A NAME="DCOPRef"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>DCOPRef</strong> ( const <A HREF="DCOPRef.html">DCOPRef</A>& ref ) <br></td><td align="right"><h3><strong>DCOPRef</strong></h3></td></tr></table><p></p><p> Copy constructor. </p> <A NAME="DCOPRef"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>DCOPRef</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj ) <br></td><td align="right"><h3><strong>DCOPRef</strong></h3></td></tr></table><p></p><p> Create a reference to a certain object in a certain application. </p> <p></p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>app</i></TD><TD align="left" valign="top">The name of an application as registered by the dcopserver. </TD></TR> </TABLE></P> <A NAME="DCOPRef"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>DCOPRef</strong> ( <A HREF="DCOPObject.html">DCOPObject</A> *object ) <br></td><td align="right"><h3><strong>DCOPRef</strong></h3></td></tr></table><p></p><p> Create a reference to a certain object in a certain application. </p> <p></p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>object</i></TD><TD align="left" valign="top">The dcop object to create the ref to. </TD></TR> </TABLE></P> <A NAME="DCOPRef"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>DCOPRef</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& type ) <br></td><td align="right"><h3><strong>DCOPRef</strong></h3></td></tr></table><p></p><p> Create a reference to a certain object in a certain application. </p> <p></p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>app</i></TD><TD align="left" valign="top">The name of an application as registered by the dcopserver. </TD></TR> </TABLE></P> <A NAME="isNull"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>isNull</strong> () <br></td><td align="right"><h3><strong>isNull</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Test wether it is a null reference. </p> <A NAME="app"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <strong>app</strong> () <br></td><td align="right"><h3><strong>app</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Name of the application in which the object resides. </p> <A NAME="object"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <strong>object</strong> () <br></td><td align="right"><h3><strong>object</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Object ID of the referenced object. </p> <A NAME="type"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <strong>type</strong> () <br></td><td align="right"><h3><strong>type</strong></h3></td></tr></table><p> <small>[const]</small></p><p> type of the referenced object. May be null (i.e. unknown). </p> <A NAME="operator="></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="DCOPRef.html">DCOPRef</A>& <strong>operator=</strong> ( const <A HREF="DCOPRef.html">DCOPRef</A>& ) <br></td><td align="right"><h3><strong>operator=</strong></h3></td></tr></table><p></p><A NAME="setRef"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setRef</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj ) <br></td><td align="right"><h3><strong>setRef</strong></h3></td></tr></table><p></p><p> Change the referenced object. Resets the type to unknown (null). </p> <A NAME="setRef"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setRef</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& app, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& obj, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A>& type ) <br></td><td align="right"><h3><strong>setRef</strong></h3></td></tr></table><p></p><p> Change the referenced object </p> <A NAME="clear"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>clear</strong> () <br></td><td align="right"><h3><strong>clear</strong></h3></td></tr></table><p></p><p> Make it a null reference. </p> <HR><UL><LI><i>Author</i>: Torben Weis <weis@kde.org> </LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:08:51 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>