1 #ifndef KGLOBALSHORTCUTINFO_H
2 #define KGLOBALSHORTCUTINFO_H
23 #include <QtCore/QList>
24 #include <QtCore/QObject>
25 #include <QtGui/QKeySequence>
26 #include <QtDBus/QDBusArgument>
29 class KGlobalShortcutInfoPrivate;
39 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.kglobalaccel.KShortcutInfo")
41 Q_SCRIPTABLE Q_PROPERTY(
QString uniqueName READ uniqueName)
42 Q_SCRIPTABLE Q_PROPERTY(
QString friendlyName READ friendlyName)
44 Q_SCRIPTABLE Q_PROPERTY(
QString componentUniqueName READ componentUniqueName)
45 Q_SCRIPTABLE Q_PROPERTY(
QString componentFriendlyName READ componentFriendlyName)
47 Q_SCRIPTABLE Q_PROPERTY(
QString contextUniqueName READ contextUniqueName)
48 Q_SCRIPTABLE Q_PROPERTY(
QString contextFriendlyName READ contextFriendlyName)
50 Q_SCRIPTABLE Q_PROPERTY(
QList<QKeySequence> keys READ keys)
51 Q_SCRIPTABLE Q_PROPERTY(
QList<QKeySequence> defaultKeys READ keys)
57 KGlobalShortcutInfo(const KGlobalShortcutInfo &rhs);
59 ~KGlobalShortcutInfo();
61 KGlobalShortcutInfo& operator= (const KGlobalShortcutInfo& rhs);
63 QString contextFriendlyName() const;
65 QString contextUniqueName() const;
67 QString componentFriendlyName() const;
69 QString componentUniqueName() const;
71 QList<QKeySequence> defaultKeys() const;
75 QList<QKeySequence> keys() const;
81 friend class GlobalShortcut;
83 friend KDEUI_EXPORT const QDBusArgument &operator>> (
84 const QDBusArgument &argument,
88 KGlobalShortcutInfoPrivate *d;
91 Q_DECLARE_METATYPE(KGlobalShortcutInfo)
92 Q_DECLARE_METATYPE(
QList<KGlobalShortcutInfo>)
const KShortcut & shortcut(StandardShortcut id)
Returns the keybinding for accel.