KDEUI
kglobalaccel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _KGLOBALACCEL_H_
00023 #define _KGLOBALACCEL_H_
00024
00025 #include <kdeui_export.h>
00026 #include "kaction.h"
00027
00028 #include <QtCore/QObject>
00029
00030 class QWidget;
00031 class KShortcut;
00032 class KComponentData;
00033
00044 class KDEUI_EXPORT KGlobalAccel : public QObject
00045 {
00046 friend class KGlobalAccelImpl;
00047 Q_OBJECT
00048
00049 public:
00053 static KGlobalAccel *self();
00054
00059 bool isEnabled() const;
00060
00066 void setEnabled(bool enabled);
00067
00082 KDE_DEPRECATED void overrideMainComponentData(const KComponentData &componentData);
00083
00084
00089 QList<QStringList> allMainComponents();
00090
00096 QList<QStringList> allActionsForComponent(const QStringList &actionId);
00097
00104 static QStringList findActionNameSystemwide(const QKeySequence &seq);
00105
00113 static bool promptStealShortcutSystemwide(QWidget *parent, const QStringList &actionIdentifier, const QKeySequence &seq);
00114
00121 static void stealShortcutSystemwide(const QKeySequence &seq);
00122
00123 private:
00124 friend class KAction;
00125
00127 KGlobalAccel();
00128
00130 ~KGlobalAccel();
00131
00132 class KGlobalAccelPrivate *const d;
00133
00134 Q_PRIVATE_SLOT(d, void _k_invokeAction(const QStringList&,qlonglong))
00135 Q_PRIVATE_SLOT(d, void _k_shortcutGotChanged(const QStringList&, const QList<int>&))
00136 Q_PRIVATE_SLOT(d, void _k_serviceOwnerChanged(const QString&, const QString&, const QString&))
00137 };
00138
00139 #endif // _KGLOBALACCEL_H_