diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java b/kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java new file mode 100644 index 00000000..82ee6dfa --- /dev/null +++ b/kdejava/koala/org/kde/koala/KDCOPPropertyProxy.java @@ -0,0 +1,83 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import org.kde.qt.QObject; + +/** + + 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 + String property called foo , then KDCOPPropertyProxy translates DCOP calls + "setFoo( String )" and "String foo()" automatically into the corresponding + setProperty/property calls. + @short The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject through DCOP. + +*/ +public class KDCOPPropertyProxy implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KDCOPPropertyProxy(Class dummy){} + + /** + 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. + @short Convenience constructor. + */ + public KDCOPPropertyProxy(QObject object) { + newKDCOPPropertyProxy(object); + } + private native void newKDCOPPropertyProxy(QObject object); + /** + Convenience method, when using this class as object. See documentation of the constructor and + static isPropertyRequest method. + @short Convenience method, when using this class as object. + */ + public native boolean isPropertyRequest(String fun); + /** + Convenience method, when using this class as object. See documentation of the constructor and + static processPropertyRequest method. + @short Convenience method, when using this class as object. + */ + public native boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData); + /** + Convenience method, when using this class as object. See documentation of the constructor and + static functions method. + @short Convenience method, when using this class as object. + */ + // QValueList<QCString> functions(); >>>> NOT CONVERTED + /** + Returns a semicolon-separated list of functions understood by the PropertyProxy for the given + QObject argument. + Returns "property(String);setProperty(String,QVariant);propertyNames();" plus set/get + methods for the properties of the given object argument. + @short Returns a semicolon-separated list of functions understood by the PropertyProxy for the given QObject argument. + @see DCOPObject#functions + */ + // QValueList<QCString> functions(QObject* arg1); >>>> NOT CONVERTED + /** + 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. + @short 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. + */ + public static native boolean isPropertyRequest(String fun, QObject object); + /** + Processes the given DCOP method request by translating the request into a setProperty/property call + on the given QObject argument. + @short Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument. + */ + public static native boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData, QObject object); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |