org.kde.koala
public class KPanelAppMenu extends QObject implements DCOPObjectInterface
UNKNOWN: DCop client menu class for the Kicker panel that will insert a submenu into the %KDE menu.
Constructor Summary | |
---|---|
protected | KPanelAppMenu(Class dummy) |
KPanelAppMenu(String title, QObject parent, String name)
Constructs a new menu with the given title. | |
KPanelAppMenu(String title, QObject parent) | |
KPanelAppMenu(String title) | |
KPanelAppMenu(QPixmap icon, String title, QObject parent, String name)
Same as above, but with an icon for the submenu item. | |
KPanelAppMenu(QObject parent, String name)
Constructs a new (sub)menu with a given id. |
Method Summary | |
---|---|
DCOPClient | callingDcopClient()
Returns the DCOPClient responsible for making the call.
|
String | className() |
void | clear()
Clears the menu. |
boolean | connectDCOPSignal(String sender, String senderObj, String signal, String slot, boolean Volatile)
Connects to a DCOP signal. |
boolean | disconnectDCOPSignal(String sender, String senderObj, String signal, String slot)
Disconnects a DCOP signal.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
void | emitDCOPSignal(String signal, byte[] data)
Emit signal as DCOP signal from this object with data as
arguments |
protected void | finalize() Deletes the wrapped C++ instance |
static DCOPObjectInterface | find(String objId)
Try to find a dcop object with the given id.
|
ArrayList | functions()
Returns the list of functions understood by the object. |
ArrayList | functionsDynamic()
This function is of interest when you used an IDL compiler
to generate the implementation for functions() but
you still want to list some functions dynamically.
|
static boolean | hasObject(String objId)
Checks whether an object with the given id is known in this process.
|
protected void | init(QPixmap icon, String title) |
int | insertItem(String text, int id)
Inserts an item into the menu. |
int | insertItem(String text) |
int | insertItem(QPixmap icon, String text, int id)
Inserts an item with a icon. |
int | insertItem(QPixmap icon, String text) |
KPanelAppMenu | insertMenu(QPixmap icon, String text, int id)
Inserts a sub menu with a icon. |
KPanelAppMenu | insertMenu(QPixmap icon, String text) |
ArrayList | interfaces()
Returns the names of the interfaces, specific ones last. |
ArrayList | interfacesDynamic()
This function is of interest when you used an IDL compiler
to generate the implementation for interfaces() but
you still want to list some interfaces dynamically.
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
static String | objectName(QObject arg1)
Creates an object id for the QObject obj. This is done
using the QObject.name() function. |
String | objId()
Returns the object id of the DCOPObject. |
boolean | process(String fun, byte[] data, StringBuffer replyType, byte[] reply) |
boolean | processDynamic(String fun, byte[] data, StringBuffer replyType, byte[] replyData)
This function is of interest when you used an IDL compiler
to generate the implementation for process() but
you still want to dispatch some functions dynamically.
|
void | setCallingDcopClient(DCOPClient arg1) |
boolean | setObjId(String objId)
Renames a dcop object, if no other with the same name exists
Use with care, all dcop signals are disconnected |
UNKNOWN: Constructs a new menu with the given title.
UNKNOWN: Same as above, but with an icon for the submenu item.
UNKNOWN: Constructs a new (sub)menu with a given id.
Returns: the DCOPClient responsible for making the call. This information is only guaranteed to be correct when entering your DCOP function.
UNKNOWN: Returns the DCOPClient responsible for making the call.
UNKNOWN: Clears the menu.
Parameters: sender the name of the client that emits the signal. When empty
the signal will be passed from any client. senderObj the name of the sending object that emits the signal. signal the name of the signal. The arguments should match with slot. slot The name of the slot to call. Its arguments should match with signal. Volatile If true, the connection will not be reestablished when
sender
unregisters and reregisters with DCOP. In this case the sender
must be registered when the connection is made.
If false, the connection will be reestablished when sender
reregisters.
In this case the connection can be made even if sender
is not registered
at that time.
Volatile
is true and sender
does not exist.
signal
and slot
do not have matching arguments.
UNKNOWN: Connects to a DCOP signal.
sender
& signal
are empty. In this
case all connections related to this object in the current client
are disconnected. (Both connections from as well as to this object!)Parameters: sender the name of the client that emits the signal. senderObj the name of the object that emits the signal. If empty all objects will be disconnected. signal the name of the signal. The arguments should match with slot. If empty all objects will be disconnected. slot The name of the slot the signal is connected to. If empty all slots will be disconnected.
Returns: false if no connection(s) where removed.
UNKNOWN: Disconnects a DCOP signal.
signal
as DCOP signal from this object with data
as
argumentsParameters: signal the signal to emit data the data to send
UNKNOWN: Emit signal
as DCOP signal from this object with data
as arguments
Parameters: objId the object id to search
Returns: the DCOPObject for the id objId.
UNKNOWN: Try to find a dcop object with the given id.
Returns: a list of functions
See Also: KPanelAppMenu KPanelAppMenu KPanelAppMenu DCOPClient
UNKNOWN: Returns the list of functions understood by the object.
Returns: A list of the additional functions, default is an empty list.
See Also: KPanelAppMenu
UNKNOWN: This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically.
Returns: true if an object with the questionable objId
is
known in this process. This query does not ask proxies.
UNKNOWN: Checks whether an object with the given id is known in this process.
UNKNOWN: Inserts an item into the menu.
UNKNOWN: Inserts an item with a icon.
UNKNOWN: Inserts a sub menu with a icon.
Returns: a list of interfaces
See Also: KPanelAppMenu
UNKNOWN: Returns the names of the interfaces, specific ones last.
Returns: A list of the additional interfaces, default is an empty list.
See Also: KPanelAppMenu
UNKNOWN: This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically.
obj.
This is done
using the QObject.name() function.Parameters: obj the object whose name will be used
Returns: the created object id
UNKNOWN: Creates an object id for the QObject obj.
Returns: the object's id
UNKNOWN: Returns the object id of the DCOPObject.
UNKNOWN:
Parameters: fun is the normalized function signature. Such a signature usually looks like foobar(String,int). The return type, qualifiers like "const" etc. are not part of the signature. data the received data replyType write the reply type in this string replyData write the reply data in this array
Returns: true if successful, false otherwise. The default implementation returns always false.
See Also: KPanelAppMenu DCOPClient KPanelAppMenu DCOPClient
UNKNOWN: This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically.
UNKNOWN:
Parameters: objId the new object id
UNKNOWN: Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected