Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_KeyInputFilter_AlphaNumeric Class Reference

Inheritance diagram for CP_KeyInputFilter_AlphaNumeric:

CP_KeyInputFilter CP_M_RefCounted List of all members.

Public Member Functions

Validation
virtual CP_CharStatus IsKeyValid (const CPUniChar *, UInt32)
Constructor / Destructor
 CP_KeyInputFilter_AlphaNumeric (bool inAllowSpace)
 Constructor.
virtual ~CP_KeyInputFilter_AlphaNumeric ()
 Destructor.
Validation
virtual CP_CharStatus IsKeyValid (char inChar)
Validation
virtual CP_CharStatus IsKeyValid (const CPUniChar *, UInt32)

Protected Attributes

bool fAllowSpace

Detailed Description

A CP_KeyInputFilter class to allow alpha numeric keystrokes.


Constructor & Destructor Documentation

CP_KeyInputFilter_AlphaNumeric::CP_KeyInputFilter_AlphaNumeric bool  inAllowSpace  ) 
 

Constructor.

Parameters:
inAllowSpace A flag to indicate if we should allow space as a valid character.
Exceptions:
none 

CP_KeyInputFilter_AlphaNumeric::~CP_KeyInputFilter_AlphaNumeric  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CP_CharStatus CP_KeyInputFilter_AlphaNumeric::IsKeyValid char  inChar2  )  [virtual]
 

Test the inChar character to see if it is allowed.

Parameters:
inChar The character to test.
Exceptions:
bool Return true if the passed in character is a valid.

Implements CP_KeyInputFilter.

virtual CP_CharStatus CP_KeyInputFilter::IsKeyValid const CPUniChar ,
UInt32 
[virtual, inherited]
 

Subclasses override this to determine if the character passed in is valid. This version checks the passed in Unicode character.

Parameters:
inChar The Unicode character to check.
inDataLength Length of the passed in string.
Exceptions:
none 
Returns:
CP_CharStatus Returns CP_CharStatus_PassUp.

Reimplemented in CP_KeyInputFilter_Numeric, and CP_KeyInputFilter_UnicodeAlphaNumeric.

bool CP_KeyInputFilter::IsADeleteKey char  inChar  )  [protected, inherited]
 

Return true if the passed in inChar is a delete key (backspace).

Parameters:
inChar The character to test.
Exceptions:
bool Return true if the passed in character is a delete key.

bool CP_KeyInputFilter::IsACursorKey char  inChar  )  [protected, inherited]
 

Return true if our inChar is one of our cursor keys. i.e. left, right, up and down editing arrows.

Parameters:
inChar The character to test.
Exceptions:
bool Return true if the passed in character is a cursor key.

bool CP_KeyInputFilter::IsAScrollKey char  inChar  )  [protected, inherited]
 

Return true if our inChar is one of our scroling keys. i.e. page up, page down, home or end.

Parameters:
inChar The character to test.
Exceptions:
bool Return true if the passed in character is a scroll key.

UInt32 CP_M_RefCounted::AddReference  )  const [inherited]
 

Add a reference to our object, returning the new reference count.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

UInt32 CP_M_RefCounted::RemoveReference  )  const [inherited]
 

Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

void CP_M_RefCounted::Autorelease  )  const [inherited]
 

Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.

See also:
CP_AutoReleasePool
Exceptions:
none 
Returns:
void

UInt32 CP_M_RefCounted::GetRefCount  )  const [inherited]
 

Returns the current ref count.

Exceptions:
none 
Returns:
UInt32 The current referencce count.


Member Data Documentation

bool CP_KeyInputFilter_AlphaNumeric::fAllowSpace [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:47 2005 for CPLAT by  doxygen 1.4.0