CGlobalHotkeys Class Reference

#include <GlobalHotkeys.h>

Inheritance diagram for CGlobalHotkeys:
[legend]
Collaboration diagram for CGlobalHotkeys:
[legend]

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 * > 
m_hotkeys
 

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 ( )
virtual

Definition at line 77 of file GlobalHotkeys.cpp.

Member Function Documentation

GlobalHotkeyEntry * CGlobalHotkeys::findHotkeyByHandle ( int  handle)
protected

Definition at line 183 of file GlobalHotkeys.cpp.

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

Definition at line 171 of file GlobalHotkeys.cpp.

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

Definition at line 152 of file GlobalHotkeys.cpp.

void CGlobalHotkeys::removeEntry ( GlobalHotkeyEntry entry)
protected

Definition at line 113 of file GlobalHotkeys.cpp.

Here is the call graph for this function:

void CGlobalHotkeys::unregisterHotkey ( int  handle)
protected

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
staticprotected

Definition at line 96 of file GlobalHotkeys.h.


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