--- /dev/null
+/****************************************************************************\r
+**\r
+** Copyright (C) Qxt Foundation. Some rights reserved.\r
+**\r
+** This file is part of the QxtGui module of the Qt eXTension library\r
+**\r
+** This library is free software; you can redistribute it and/or modify it\r
+** under the terms of th Common Public License, version 1.0, as published by\r
+** IBM.\r
+**\r
+** This file is provided "AS IS", without WARRANTIES OR CONDITIONS OF ANY\r
+** KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY\r
+** WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR\r
+** FITNESS FOR A PARTICULAR PURPOSE. \r
+**\r
+** You should have received a copy of the CPL along with this file.\r
+** See the LICENSE file and the cpl1.0.txt file included with the source\r
+** distribution for more information. If you did not receive a copy of the\r
+** license, contact the Qxt Foundation.\r
+** \r
+** <http://libqxt.sourceforge.net> <foundation@libqxt.org>\r
+**\r
+****************************************************************************/\r
+#ifndef QXTAPPLICATION_P_H\r
+#define QXTAPPLICATION_P_H\r
+\r
+#include <QPair>\r
+#include <QList>\r
+#include <QMultiHash>\r
+#include "qxtpimpl.h"\r
+#include "qxtapplication.h"\r
+#include "qxtnativeeventfilter.h"\r
+\r
+typedef QPair<uint, uint> Identifier;\r
+typedef QList<Identifier> Identifiers;\r
+typedef QPair<QWidget*, const char*> Receiver;\r
+typedef QList<Receiver> Receivers;\r
+\r
+class QxtApplicationPrivate : public QxtPrivate<QxtApplication>\r
+{\r
+public:\r
+ QXT_DECLARE_PUBLIC(QxtApplication);\r
+ \r
+ uint nativeKeycode(Qt::Key key) const;\r
+ uint nativeModifiers(Qt::KeyboardModifiers modifiers) const;\r
+ \r
+ bool registerHotKey(uint modifiers, uint keycode, QWidget* receiver);\r
+ bool unregisterHotKey(uint modifiers, uint keycode, QWidget* receiver);\r
+ void activateHotKey(uint modifiers, uint keycode) const;\r
+\r
+ QMultiHash<Identifier, Receiver> hotkeys;\r
+ QList<QxtNativeEventFilter*> nativeFilters;\r
+};\r
+\r
+inline uint qHash(const QPair<uint, uint>& value)\r
+{\r
+ return qHash(value.first) ^ qHash(value.second);\r
+}\r
+\r
+#endif // QXTAPPLICATION_P_H\r