#include <dbusmenuexporter.h>
|
class | DBusMenuExporterPrivate |
|
class | DBusMenuExporterDBus |
|
class | DBusMenu |
|
A DBusMenuExporter instance can serialize a menu over DBus
DBusMenuExporter::DBusMenuExporter |
( |
const QString & |
dbusObjectPath, |
|
|
QMenu * |
menu, |
|
|
const QDBusConnection & |
dbusConnection = QDBusConnection::sessionBus() |
|
) |
| |
Creates a DBusMenuExporter exporting menu at the dbus object path dbusObjectPath, using the given dbusConnection. The instance adds itself to the menu children.
void DBusMenuExporter::activateAction |
( |
QAction * |
action | ) |
|
Asks the matching DBusMenuImporter to activate action
. For menus it means popup them, for items it means triggering the associated action.
virtual QString DBusMenuExporter::iconNameForAction |
( |
QAction * |
action | ) |
|
|
protectedvirtual |
Must extract the icon name for action. This is the name which will be used to present the icon over DBus. Default implementation returns action->icon().name() when built on Qt >= 4.7 and a null string otherwise.
void DBusMenuExporter::setStatus |
( |
const QString & |
status | ) |
|
The status of the menu. Can be one of "normal" or "notice". This can be used to notify the other side the menu should be made more visible. For example, appmenu uses it to tell Unity panel to show/hide the menubar when the Alt modifier is pressed/released.
QString DBusMenuExporter::status |
( |
| ) |
const |
The documentation for this class was generated from the following file: