Sayonara Player
Signals | Public Member Functions | Friends | List of all members
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 More...
 
void setShortcut (ShortcutIdentifier databaseKey, const QStringList &shortcut)
 set the shortcut by its unique identifier More...
 
QList< ShortcutIdentifier > allIdentifiers () const
 get all shortcuts More...
 
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