21 #ifndef DBUSMENUEXPORTER_H 22 #define DBUSMENUEXPORTER_H 25 #include <QtCore/QObject> 26 #include <QtDBus/QDBusConnection> 29 #include <dbusmenu_export.h> 34 class DBusMenuExporterPrivate;
48 DBusMenuExporter(
const QString &dbusObjectPath, QMenu *menu,
const QDBusConnection &dbusConnection = QDBusConnection::sessionBus());
56 void activateAction(QAction *action);
64 void setStatus(
const QString &status);
70 QString status()
const;
79 virtual QString iconNameForAction(QAction *action);
82 void doUpdateActions();
83 void doEmitLayoutUpdated();
84 void slotActionDestroyed(QObject*);
88 DBusMenuExporterPrivate *
const d;
90 friend class DBusMenuExporterPrivate;
91 friend class DBusMenuExporterDBus;
92 friend class DBusMenu;