LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
IHaveShortcuts Class Referenceabstract

Interface for plugins that support configuring shortcuts. More...

#include "ihaveshortcuts.h"

Public Member Functions

virtual void SetShortcut (const QByteArray &id, const QKeySequences_t &sequences)=0
 Sets shortcut's list of key sequences if it has been changed.
virtual QMap< QByteArray, LC::ActionInfoGetActionInfo () const =0
 Returns information about all the shortcuts.
virtual ~IHaveShortcuts ()

Detailed Description

Interface for plugins that support configuring shortcuts.

LC::Util::ShortcutManager class can help creating the GetActionInfo() map and keeping track of created actions, automatically updating their shortcuts.

See also
LC::Util::ShortcutManager

Definition at line 72 of file ihaveshortcuts.h.

Constructor & Destructor Documentation

◆ ~IHaveShortcuts()

virtual IHaveShortcuts::~IHaveShortcuts ( )
inlinevirtual

Definition at line 94 of file ihaveshortcuts.h.

Member Function Documentation

◆ GetActionInfo()

virtual QMap< QByteArray, LC::ActionInfo > IHaveShortcuts::GetActionInfo ( ) const
pure virtual

Returns information about all the shortcuts.

Returns a QMap from action id to the ActionInfo. Action id would be further used in SetShortcut and IShortcutProxy::GetShortcut(), for example.

Returns
Shortcut IDs mapped to the corresponding ActionInfo.

◆ SetShortcut()

virtual void IHaveShortcuts::SetShortcut ( const QByteArray & id,
const QKeySequences_t & sequences )
pure virtual

Sets shortcut's list of key sequences if it has been changed.

The id is the same as in the return value of GetActionInfo().

Parameters
[in]idThe id of the action.
[in]sequencesThe new key sequences.

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/interfaces/ihaveshortcuts.h