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);
104 void menuReadyToBeShown();
109 void actionActivationRequested(QAction *);
116 virtual QMenu *createMenu(QWidget *parent);
122 virtual QIcon iconForName(
const QString &);
125 void sendClickedEvent(
int);
126 void slotMenuAboutToShow();
127 void slotMenuAboutToHide();
128 void slotAboutToShowDBusCallFinished(QDBusPendingCallWatcher *);
129 void slotItemActivationRequested(
int id, uint timestamp);
130 void processPendingLayoutUpdates();
131 void slotLayoutUpdated(uint revision,
int parentId);
132 void slotGetLayoutFinished(QDBusPendingCallWatcher *);
136 DBusMenuImporterPrivate *
const d;
137 friend class DBusMenuImporterPrivate;
140 Q_PRIVATE_SLOT(d,
void slotItemsPropertiesUpdated(
const DBusMenuItemList &updatedList,
const DBusMenuItemKeysList &removedList))