LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
IShortcutProxy Class Referenceabstract

Proxy for requesting shortcuts from the shortcut manager in the Core. More...

#include "ishortcutproxy.h"

Public Member Functions

virtual bool HasObject (QObject *object) const =0
 Checks whether a given object has been registered already. More...
 
virtual QList< QKeySequence > GetShortcuts (QObject *object, const QString &id)=0
 Returns a QKeySequence for the given action. More...
 
virtual ~IShortcutProxy ()
 

Detailed Description

Proxy for requesting shortcuts from the shortcut manager in the Core.

The plugin can communicate with the shortcut manager via this proxy.

See also
IHaveShortcuts::SetShortcutProxy().

Definition at line 27 of file ishortcutproxy.h.

Constructor & Destructor Documentation

◆ ~IShortcutProxy()

virtual IShortcutProxy::~IShortcutProxy ( )
inlinevirtual

Definition at line 54 of file ishortcutproxy.h.

Member Function Documentation

◆ GetShortcuts()

virtual QList<QKeySequence> IShortcutProxy::GetShortcuts ( QObject *  object,
const QString &  id 
)
pure virtual

Returns a QKeySequence for the given action.

Returns a list of key sequences for the action with given id for the given object which is currently set in the shortcut manager. The id is the same as in return value of IHaveShortcuts::GetActionInfo().

The object is used to distinguish between ids of different plugins. It can be said that object defines the context for the id.

Parameters
[in]objectThe object that should be checked.
[in]idID of the action.
Returns
The key sequences for the passed action.

◆ HasObject()

virtual bool IShortcutProxy::HasObject ( QObject *  object) const
pure virtual

Checks whether a given object has been registered already.

Parameters
[in]objectThe object to check.
Returns
Returns whether the object has been already registered.

The documentation for this class was generated from the following file: