Changeset View
Changeset View
Standalone View
Standalone View
src/kglobalaccel_p.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
67 | 67 | | |||
68 | //"private" helpers | 68 | //"private" helpers | ||
69 | QString componentUniqueForAction(const QAction *action); | 69 | QString componentUniqueForAction(const QAction *action); | ||
70 | QString componentFriendlyForAction(const QAction *action); | 70 | QString componentFriendlyForAction(const QAction *action); | ||
71 | QStringList makeActionId(const QAction *action); | 71 | QStringList makeActionId(const QAction *action); | ||
72 | QList<int> intListFromShortcut(const QList<QKeySequence> &cut); | 72 | QList<int> intListFromShortcut(const QList<QKeySequence> &cut); | ||
73 | QList<QKeySequence> shortcutFromIntList(const QList<int> &list); | 73 | QList<QKeySequence> shortcutFromIntList(const QList<int> &list); | ||
74 | 74 | | |||
75 | void cleanup(); | ||||
76 | | ||||
75 | //private slot implementations | 77 | //private slot implementations | ||
76 | void _k_invokeAction(const QString &, const QString &, qlonglong); | 78 | void _k_invokeAction(const QString &, const QString &, qlonglong); | ||
77 | void _k_shortcutGotChanged(const QStringList &, const QList<int> &); | 79 | void _k_shortcutGotChanged(const QStringList &, const QList<int> &); | ||
78 | void _k_serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner); | 80 | void _k_serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner); | ||
79 | void reRegisterAll(); | 81 | void reRegisterAll(); | ||
80 | 82 | | |||
81 | //for all actions with (isEnabled() && globalShortcutAllowed()) | 83 | //for all actions with (isEnabled() && globalShortcutAllowed()) | ||
82 | QMultiHash<QString, QAction *> nameToAction; | 84 | QMultiHash<QString, QAction *> nameToAction; | ||
Show All 12 Lines | |||||
95 | 97 | | |||
96 | //! The components the application is using | 98 | //! The components the application is using | ||
97 | QHash<QString, org::kde::kglobalaccel::Component *> components; | 99 | QHash<QString, org::kde::kglobalaccel::Component *> components; | ||
98 | QMap<const QAction *, QList<QKeySequence> > actionDefaultShortcuts; | 100 | QMap<const QAction *, QList<QKeySequence> > actionDefaultShortcuts; | ||
99 | QMap<const QAction *, QList<QKeySequence> > actionShortcuts; | 101 | QMap<const QAction *, QList<QKeySequence> > actionShortcuts; | ||
100 | 102 | | |||
101 | private: | 103 | private: | ||
102 | org::kde::KGlobalAccel *m_iface; | 104 | org::kde::KGlobalAccel *m_iface; | ||
105 | QDBusServiceWatcher *m_watcher; | ||||
103 | }; | 106 | }; | ||
104 | 107 | | |||
105 | Q_DECLARE_OPERATORS_FOR_FLAGS(KGlobalAccelPrivate::ShortcutTypes) | 108 | Q_DECLARE_OPERATORS_FOR_FLAGS(KGlobalAccelPrivate::ShortcutTypes) | ||
106 | 109 | | |||
107 | #endif | 110 | #endif |