GlobalShortcutContext

Search for usage in LXR

GlobalShortcutContext Class Reference

#include <globalshortcutcontext.h>

Public Member Functions

 GlobalShortcutContext (const QString &uniqueName, const QString &friendlyName, KdeDGlobalAccel::Component *component)
 
virtual ~GlobalShortcutContext ()
 
void addShortcut (GlobalShortcut *shortcut)
 
QList< KGlobalShortcutInfoallShortcutInfos () const
 
KdeDGlobalAccel::Componentcomponent ()
 
KdeDGlobalAccel::Component const * component () const
 
QString friendlyName () const
 
GlobalShortcutgetShortcutByKey (int key) const
 
GlobalShortcuttakeShortcut (GlobalShortcut *shortcut)
 
QString uniqueName () const
 

Detailed Description

Constructor & Destructor Documentation

GlobalShortcutContext::GlobalShortcutContext ( const QString uniqueName,
const QString friendlyName,
KdeDGlobalAccel::Component component 
)

Default constructor.

Definition at line 11 of file globalshortcutcontext.cpp.

GlobalShortcutContext::~GlobalShortcutContext ( )
virtual

Destructor.

Definition at line 20 of file globalshortcutcontext.cpp.

Member Function Documentation

void GlobalShortcutContext::addShortcut ( GlobalShortcut shortcut)

Adds shortcut to the context.

Definition at line 26 of file globalshortcutcontext.cpp.

QList< KGlobalShortcutInfo > GlobalShortcutContext::allShortcutInfos ( ) const

Return KGlobalShortcutInfos for all shortcuts.

Definition at line 31 of file globalshortcutcontext.cpp.

GlobalShortcut * GlobalShortcutContext::getShortcutByKey ( int  key) const

Get shortcut for key or nullptr.

Definition at line 55 of file globalshortcutcontext.cpp.

GlobalShortcut * GlobalShortcutContext::takeShortcut ( GlobalShortcut shortcut)

Remove shortcut from the context. The shortcut is not deleted.

Definition at line 77 of file globalshortcutcontext.cpp.

QString GlobalShortcutContext::uniqueName ( ) const

Get the name for the context.

Definition at line 84 of file globalshortcutcontext.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 22 2021 22:55:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.