21 #ifndef DBUSMENUIMPORTER_H 22 #define DBUSMENUIMPORTER_H 25 #include <QtCore/QObject> 28 #include <dbusmenu_export.h> 31 class QDBusAbstractInterface;
32 class QDBusPendingCallWatcher;
37 class DBusMenuImporterPrivate;
43 enum DBusMenuImporterType {
59 DBusMenuImporter(
const QString &service,
const QString &path, QObject *parent = 0);
65 DBusMenuImporter(
const QString &service,
const QString &path, DBusMenuImporterType type, QObject *parent = 0);
73 QMenu *menu(QWidget *parent)
const;
105 void menuReadyToBeShown();
110 void actionActivationRequested(QAction *);
117 virtual QMenu *createMenu(QWidget *parent);
123 virtual QIcon iconForName(
const QString &);
126 void sendClickedEvent(
int);
127 void slotMenuAboutToShow();
128 void slotMenuAboutToHide();
129 void slotAboutToShowDBusCallFinished(QDBusPendingCallWatcher *);
130 void slotItemActivationRequested(
int id, uint timestamp);
131 void processPendingLayoutUpdates();
132 void slotLayoutUpdated(uint revision,
int parentId);
133 void slotGetLayoutFinished(QDBusPendingCallWatcher *);
137 DBusMenuImporterPrivate *
const d;
138 friend class DBusMenuImporterPrivate;
141 Q_PRIVATE_SLOT(d,
void slotItemsPropertiesUpdated(
const DBusMenuItemList &updatedList,
const DBusMenuItemKeysList &removedList))