LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
ishortcutproxy.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QtPlugin>
12
13class QObject;
14class QString;
15class QKeySequence;
16
17template<typename T>
18class QList;
19
27class Q_DECL_EXPORT IShortcutProxy
28{
29public:
35 virtual bool HasObject (QObject *object) const = 0;
36
52 virtual QList<QKeySequence> GetShortcuts (QObject *object, const QByteArray& id) = 0;
53
54 virtual ~IShortcutProxy () { }
55};
56
57Q_DECLARE_INTERFACE (IShortcutProxy, "org.Deviant.LeechCraft.IShortcutProxy/1.0")
Proxy for requesting shortcuts from the shortcut manager in the Core.
virtual ~IShortcutProxy()
virtual QList< QKeySequence > GetShortcuts(QObject *object, const QByteArray &id)=0
Returns a QKeySequence for the given action.
virtual bool HasObject(QObject *object) const =0
Checks whether a given object has been registered already.