CGlobalHotkeys Class Reference

#include <GlobalHotkeys.h>

Inheritance diagram for CGlobalHotkeys:
Collaboration diagram for CGlobalHotkeys:

Public Member Functions

 CGlobalHotkeys ()
virtual ~CGlobalHotkeys ()
- Public Member Functions inherited from sbIGlobalHotkeys
void addHotkey (in PRInt32 keyCode, in PRBool altKey, in PRBool ctrlKey, in PRBool shiftKey, in PRBool metaKey, in AString key_id, in sbIGlobalHotkeyCallback cb)
 Global hotkey registration method This method is used to register a hotkey. More...
void removeHotkey (in AString key_id)
 Global hotkey unregistration method This method is used to unregister a hotkey that has been previously registered with AddHotkey. More...
void removeAllHotkeys ()
 Global hotkeys unregistration method This method is used to unregister all hotkeys that have been previously registered with addHotkey. More...

Protected Member Functions

int registerHotkey (PRInt32 keyCode, PRBool altKey, PRBool ctrlKey, PRBool shiftKey, PRBool metaKey)
void unregisterHotkey (int handle)
GlobalHotkeyEntryfindHotkeyById (const nsAString &keyid)
GlobalHotkeyEntryfindHotkeyByHandle (int handle)
void removeEntry (GlobalHotkeyEntry *entry)

Static Protected Attributes

static std::list
< GlobalHotkeyEntry * > 

Detailed Description

Definition at line 70 of file GlobalHotkeys.h.

Constructor & Destructor Documentation

CGlobalHotkeys::CGlobalHotkeys ( )

Definition at line 59 of file GlobalHotkeys.cpp.

CGlobalHotkeys::~CGlobalHotkeys ( )

Definition at line 77 of file GlobalHotkeys.cpp.

Member Function Documentation

GlobalHotkeyEntry * CGlobalHotkeys::findHotkeyByHandle ( int  handle)

Definition at line 183 of file GlobalHotkeys.cpp.

GlobalHotkeyEntry * CGlobalHotkeys::findHotkeyById ( const nsAString &  keyid)

Definition at line 171 of file GlobalHotkeys.cpp.

int CGlobalHotkeys::registerHotkey ( PRInt32  keyCode,
PRBool  altKey,
PRBool  ctrlKey,
PRBool  shiftKey,
PRBool  metaKey 

Definition at line 152 of file GlobalHotkeys.cpp.

void CGlobalHotkeys::removeEntry ( GlobalHotkeyEntry entry)

Definition at line 113 of file GlobalHotkeys.cpp.

Here is the call graph for this function:

void CGlobalHotkeys::unregisterHotkey ( int  handle)

Definition at line 163 of file GlobalHotkeys.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::list< GlobalHotkeyEntry * > CGlobalHotkeys::m_hotkeys

Definition at line 96 of file GlobalHotkeys.h.

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