Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/globalshortcutsregistry.h
| Show All 25 Lines | |||||
| 26 | 26 | | |||
| 27 | 27 | | |||
| 28 | class GlobalShortcut; | 28 | class GlobalShortcut; | ||
| 29 | class KGlobalAccelInterface; | 29 | class KGlobalAccelInterface; | ||
| 30 | 30 | | |||
| 31 | namespace KdeDGlobalAccel | 31 | namespace KdeDGlobalAccel | ||
| 32 | { | 32 | { | ||
| 33 | class Component; | 33 | class Component; | ||
| 34 | class KServiceActionComponent; | ||||
| 34 | } | 35 | } | ||
| 35 | 36 | | |||
| 36 | /** | 37 | /** | ||
| 37 | * Global Shortcut Registry. | 38 | * Global Shortcut Registry. | ||
| 38 | * | 39 | * | ||
| 39 | * Shortcuts are registered by component. A component is for example kmail or | 40 | * Shortcuts are registered by component. A component is for example kmail or | ||
| 40 | * amarok. | 41 | * amarok. | ||
| 41 | * | 42 | * | ||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
| 127 | bool registerKey(int key, GlobalShortcut *shortcut); | 128 | bool registerKey(int key, GlobalShortcut *shortcut); | ||
| 128 | 129 | | |||
| 129 | void setAccelManager(KGlobalAccelInterface *manager); | 130 | void setAccelManager(KGlobalAccelInterface *manager); | ||
| 130 | 131 | | |||
| 131 | void setDBusPath(const QDBusObjectPath &path); | 132 | void setDBusPath(const QDBusObjectPath &path); | ||
| 132 | 133 | | |||
| 133 | bool unregisterKey(int key, GlobalShortcut *shortcut); | 134 | bool unregisterKey(int key, GlobalShortcut *shortcut); | ||
| 134 | 135 | | |||
| 136 | void markComponentAsDisabled(KdeDGlobalAccel::KServiceActionComponent *component); | ||||
| 137 | | ||||
| 135 | public Q_SLOTS: | 138 | public Q_SLOTS: | ||
| 136 | 139 | | |||
| 137 | void clear(); | 140 | void clear(); | ||
| 138 | 141 | | |||
| 139 | void loadSettings(); | 142 | void loadSettings(); | ||
| 140 | 143 | | |||
| 141 | void writeSettings() const; | 144 | void writeSettings() const; | ||
| 142 | 145 | | |||
| Show All 30 Lines | |||||