• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdecore

KDCOPPropertyProxy Class Reference

#include <kdcoppropertyproxy.h>

List of all members.


Detailed Description

The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject 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 QObject. That means for example if your object provides a QString property called foo , then KDCOPPropertyProxy translates DCOP calls "setFoo( QString )" and "QString foo()" automatically into the corresponding setProperty/property calls.

Definition at line 39 of file kdcoppropertyproxy.h.


Public Member Functions

 KDCOPPropertyProxy (QObject *object)
 ~KDCOPPropertyProxy ()
bool isPropertyRequest (const QCString &fun)
bool processPropertyRequest (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData)
QValueList< QCString > functions ()

Static Public Member Functions

static QValueList< QCString > functions (QObject *object)
static bool isPropertyRequest (const QCString &fun, QObject *object)
static bool processPropertyRequest (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData, QObject *object)

Constructor & Destructor Documentation

KDCOPPropertyProxy::KDCOPPropertyProxy ( QObject *  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 QObject argument for each call.

Definition at line 51 of file kdcoppropertyproxy.cpp.

KDCOPPropertyProxy::~KDCOPPropertyProxy (  ) 

Destructor.

Definition at line 57 of file kdcoppropertyproxy.cpp.


Member Function Documentation

bool KDCOPPropertyProxy::isPropertyRequest ( const QCString &  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.

bool KDCOPPropertyProxy::processPropertyRequest ( const QCString &  fun,
const QByteArray &  data,
QCString &  replyType,
QByteArray &  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.

QValueList< QCString > 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.

QValueList< QCString > KDCOPPropertyProxy::functions ( QObject *  object  )  [static]

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

Returns "property(QCString);setProperty(QCString,QVariant);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.

bool KDCOPPropertyProxy::isPropertyRequest ( const QCString &  fun,
QObject *  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.

bool KDCOPPropertyProxy::processPropertyRequest ( const QCString &  fun,
const QByteArray &  data,
QCString &  replyType,
QByteArray &  replyData,
QObject *  object 
) [static]

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

Definition at line 124 of file kdcoppropertyproxy.cpp.


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

kdecore

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal