1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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.TQObject;
/**
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
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 TQObject 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 TQObject argument for each
call.
@short Convenience constructor.
*/
public KDCOPPropertyProxy(TQObject object) {
newKDCOPPropertyProxy(object);
}
private native void newKDCOPPropertyProxy(TQObject 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.
*/
// TQValueList<TQCString> functions(); >>>> NOT CONVERTED
/**
Returns a semicolon-separated list of functions understood by the PropertyProxy for the given
TQObject argument.
Returns "property(String);setProperty(String,TQVariant);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 TQObject argument.
@see DCOPObject#functions
*/
// TQValueList<TQCString> functions(TQObject* 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, TQObject object);
/**
Processes the given DCOP method request by translating the request into a setProperty/property call
on the given TQObject argument.
@short Processes the given DCOP method request by translating the request into a setProperty/property call on the given TQObject argument.
*/
public static native boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData, TQObject 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();
}
|