Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members

HardKeyManager Class Reference

HardKeyManager manages the hard keys (Up/Down, Calendar, Address Book, etc.) of the device. More...

#include <HardKeyManager.h>

List of all members.

Static Public Methods

void captureHardKeys ()
 Prepare the hard keys for polling (i.e. More...

void releaseHardKeys ()
 Return the hard keys to event generation mode. More...

UInt32 getCurrentState ()
 Get the current state of the hard keys. More...

void setMask (UInt32 mask)
 Express your interest in the keys specified by the mask. More...


Friends

class  Presentation


Detailed Description

HardKeyManager manages the hard keys (Up/Down, Calendar, Address Book, etc.) of the device.

It can prevent them from switching apps, it can modify their repeat rate, and it can poll their state.

Definition at line 36 of file HardKeyManager.h.


Member Function Documentation

void HardKeyManager::captureHardKeys ( ) [static]
 

Prepare the hard keys for polling (i.e.

turn off event generation). Idempotent.

Definition at line 45 of file HardKeyManager.cpp.

Referenced by Presentation::begin(), and Presentation::resume().

UInt32 HardKeyManager::getCurrentState ( ) [static]
 

Get the current state of the hard keys.

The result will be identical to that from the KeyCurrentState() PalmOS call.

Returns:
the currently pressed keys. Use the keyXXX constants from KeyMgr.h to decipher it.

Definition at line 59 of file HardKeyManager.cpp.

Referenced by DemoActionEngine::nextPeriod().

void HardKeyManager::releaseHardKeys ( ) [static]
 

Return the hard keys to event generation mode.

Idempotent.

Definition at line 52 of file HardKeyManager.cpp.

Referenced by Presentation::pause().

void HardKeyManager::setMask ( UInt32 mask ) [static]
 

Express your interest in the keys specified by the mask.

Parameters:
the   keys you want to listen to. Use the keyXXX constants from KeyMgr.h.

Definition at line 65 of file HardKeyManager.cpp.


Friends And Related Function Documentation

class Presentation [friend]
 

Definition at line 102 of file HardKeyManager.h.


The documentation for this class was generated from the following files:
Razor! Engine Developer's Guide. Copyright © by Tilo Christ. All Rights Reserved. Last updated: 4 Nov 2000