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

tdecore

Public Member Functions | Static Public Member Functions | List of all members
KDCOPPropertyProxy Class Reference

#include <kdcoppropertyproxy.h>

Public Member Functions

 KDCOPPropertyProxy (TQObject *object)
 
 ~KDCOPPropertyProxy ()
 
bool isPropertyRequest (const TQCString &fun)
 
bool processPropertyRequest (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
 
TQValueList< TQCString > functions ()
 

Static Public Member Functions

static TQValueList< TQCString > functions (TQObject *object)
 
static bool isPropertyRequest (const TQCString &fun, TQObject *object)
 
static bool processPropertyRequest (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData, TQObject *object)
 

Detailed Description

The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a TQObject through DCOP.

The class provides DCOP equivalents for the Qt property methods setProperty() , property() and propertyNames() and also provides automatic set/get methods for the properties of a TQObject. That means for example if your object provides a TQString property called foo , then KDCOPPropertyProxy translates DCOP calls "setFoo( TQString )" and "TQString foo()" automatically into the corresponding setProperty/property calls.

Definition at line 39 of file kdcoppropertyproxy.h.

Constructor & Destructor Documentation

◆ KDCOPPropertyProxy()

KDCOPPropertyProxy::KDCOPPropertyProxy ( TQObject *  object)

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 TQObject argument for each call.

Definition at line 51 of file kdcoppropertyproxy.cpp.

◆ ~KDCOPPropertyProxy()

KDCOPPropertyProxy::~KDCOPPropertyProxy ( )

Destructor.

Definition at line 57 of file kdcoppropertyproxy.cpp.

Member Function Documentation

◆ functions() [1/2]

TQValueList< TQCString > KDCOPPropertyProxy::functions ( )

Convenience method, when using this class as object.

See documentation of the constructor and static functions method.

Definition at line 73 of file kdcoppropertyproxy.cpp.

◆ functions() [2/2]

TQValueList< TQCString > KDCOPPropertyProxy::functions ( TQObject *  object)
static

Returns a semicolon-separated list of functions understood by the PropertyProxy for the given TQObject argument.

Returns "property(TQCString);setProperty(TQCString,TQVariant);propertyNames();" plus set/get methods for the properties of the given object argument.

See also
DCOPObject::functions()

Definition at line 90 of file kdcoppropertyproxy.cpp.

◆ isPropertyRequest() [1/2]

bool KDCOPPropertyProxy::isPropertyRequest ( const TQCString &  fun)

Convenience method, when using this class as object.

See documentation of the constructor and static isPropertyRequest method.

Definition at line 62 of file kdcoppropertyproxy.cpp.

◆ isPropertyRequest() [2/2]

bool KDCOPPropertyProxy::isPropertyRequest ( const TQCString &  fun,
TQObject *  object 
)
static

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 DCOPObject dispatcher to check if the DCOP request is a property request which can be handled by this class.

Definition at line 78 of file kdcoppropertyproxy.cpp.

◆ processPropertyRequest() [1/2]

bool KDCOPPropertyProxy::processPropertyRequest ( const TQCString &  fun,
const TQByteArray &  data,
TQCString &  replyType,
TQByteArray &  replyData 
)

Convenience method, when using this class as object.

See documentation of the constructor and static processPropertyRequest method.

Definition at line 67 of file kdcoppropertyproxy.cpp.

◆ processPropertyRequest() [2/2]

bool KDCOPPropertyProxy::processPropertyRequest ( const TQCString &  fun,
const TQByteArray &  data,
TQCString &  replyType,
TQByteArray &  replyData,
TQObject *  object 
)
static

Processes the given DCOP method request by translating the request into a setProperty/property call on the given TQObject argument.

Definition at line 140 of file kdcoppropertyproxy.cpp.


The documentation for this class was generated from the following files:
  • kdcoppropertyproxy.h
  • kdcoppropertyproxy.cpp

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • 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 tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.