Sayonara Player
Loading...
Searching...
No Matches
ShortcutHandler Class Reference

A singleton class for retrieving shortcuts. More...

#include <ShortcutHandler.h>

Inheritance diagram for ShortcutHandler:

Signals

void sigShortcutChanged (ShortcutIdentifier databaseKey)

Public Member Functions

Shortcut shortcut (ShortcutIdentifier databaseKey) const
 get a shortcut by its unique identifier
void setShortcut (ShortcutIdentifier databaseKey, const QStringList &shortcut)
 set the shortcut by its unique identifier
QList< ShortcutIdentifier > allIdentifiers () const
 get all shortcuts
QString databaseKey (ShortcutIdentifier id) const
QString shortcut_text (ShortcutIdentifier id) const

Friends

class Shortcut

Detailed Description

A singleton class for retrieving shortcuts.

Member Function Documentation

◆ allIdentifiers()

QList< ShortcutIdentifier > ShortcutHandler::allIdentifiers ( ) const

get all shortcuts

Returns

◆ setShortcut()

void ShortcutHandler::setShortcut ( ShortcutIdentifier databaseKey,
const QStringList & shortcut )

set the shortcut by its unique identifier

Parameters
identifierthe identifier which is used in database
shortcuta shortcut instance

◆ shortcut()

Shortcut ShortcutHandler::shortcut ( ShortcutIdentifier databaseKey) const

get a shortcut by its unique identifier

Parameters
identifierthe identifier which is used in database
Returns
a shortcut instance