CAknEcsDetector Class Reference
class CAknEcsDetector : public CBase |
Central coordinating object in the emergency call system Objects of this class own the number queue and own the interface object to the stored emergency numbers.
A phone client session is also open while constructed
Constructor & Destructor Documentation
CAknEcsDetector()
IMPORT_C | CAknEcsDetector | ( | ) | [protected] |
~CAknEcsDetector()
IMPORT_C | ~CAknEcsDetector | ( | ) | [virtual] |
Member Functions Documentation
AddChar(TText)
IMPORT_C void | AddChar | ( | TText | aNewChar | ) | |
Add a character to the emergency call buffer. This should be fed with both numberic key presses and the Send key.
Parameters
TText aNewChar | New character to emergency call buffer. |
AttemptEmergencyCall()
void | AttemptEmergencyCall | ( | ) | [private] |
Wraps up the code that acutally sets off the emergency call
CallAttemptedCallback(TAny *)
TInt
| CallAttemptedCallback | ( | TAny * | aSelf | ) | [static] |
This callback is called by a CIdle object to state that the call has been attempted. This is called outside the event loop in order allow self-deletion of the client object.
State is set to CallAttempted by this method.
CancelMatch(TAny *)
TInt
| CancelMatch | ( | TAny * | aAny | ) | [protected, static] |
Static method that can be used as a cancel callback to the detector
CaptureKeys()
void | CaptureKeys | ( | ) | [private] |
Wraps up the code to capture whatever keys are necessary when the emergency number
CloseEventSource()
IMPORT_C void | CloseEventSource | ( | ) | |
Closes the connection to the appui object opened by a previous call to ConnectToEventSource
ConnectToEventSource()
IMPORT_C TBool | ConnectToEventSource | ( | ) | |
This method attaches the Ecs Detector to the current appui and the registers itself for receiving all key presses parasitically. This method is called when there is no requirement for the ECS to keep synchronized with a visual buffer
ConstructL()
IMPORT_C void | ConstructL | ( | ) | [protected] |
2nd stage construction. All memory allocation is performed in this routine
CurrentMatch()
IMPORT_C TPtrC | CurrentMatch | ( | ) | const |
Returns a pointer to the current matching number.
DetermineState()
void | DetermineState | ( | ) | [private] |
Utility routine to determine the new state of the module.
HandlePhoneStatusL(const TInt)
void | HandlePhoneStatusL | ( | const TInt | aStatus | ) | [virtual] |
It is called whenever status is retrieved (by the client).
Parameters
const TInt aStatus | It is the status of the phone. |
HandleWsEventL(const TWsEvent &, CCoeControl *)
IndexOfCurrentMatch()
TInt
| IndexOfCurrentMatch | ( | ) | const |
Returns an index to the current character buffer where the emergency number match begins. This value is between 0 and KAknEcsMaxMatchingLength, even if there have been a large number characters input to the FIFO. Thus, it does not take account of characters that have fallen out of the FIFO.
The main use case for this is to allow clients to tell if the number was matched from the beginning of the buffer (value 0). Note that for emergency numbers of length KAknEcsMaxMatchingLength will ALWAYS return 0 if there is a complete match.
MakeServiceCallL()
void | MakeServiceCallL | ( | ) | [private] |
Wraps up the code that actually initiates the service call
NewL()
Two phase constructor for Ecs detector Static method.
OfferEmergencyCall()
IMPORT_C TBool | OfferEmergencyCall | ( | ) | [protected, virtual] |
Framework method that may be re-implemented in order to perform some check or put up UI before the phone call is made Implementation must not leave;
RelinquishCapturedKeys()
void | RelinquishCapturedKeys | ( | ) | [private] |
Uncaptures Send key (if necessary)
ReportEvent(TState)
IMPORT_C void | ReportEvent | ( | TState | aNewState | ) | [protected, virtual] |
Reset()
Reset the buffer to a just initialized state.
SetBuffer(const TDesC &)
IMPORT_C void | SetBuffer | ( | const TDesC & | aNewBuffer | ) | |
Set the entire contents of the emergency call buffer. A reset is performed first, and then the characters in the passed descriptor are added to the buffer. Emergency number is matched only if there is not other content in the string.
Parameters
const TDesC & aNewBuffer | Emergency call buffer. |
SetObserver(MAknEcsObserver *)
Sets the obserever of the EcsDetector
SetState(TState)
IMPORT_C void | SetState | ( | TState | newState | ) | [protected] |
Internal routine to set the state
State()
Returns the current state of the Ecs Detector
Member Enumerations Documentation
Enum TBitFlagIndices
Enumeration for the bit indices of iFlags Used for substates or state modifiers
Enumerators
EEventSourceConnected = 0 | |
ETestMode | |
Enum TState
Enumeration to carry the state of the Ecs detector
Enumerators
ENotFullyConstructed | |
EEmpty | |
ENoMatch | |
EPartialMatch | |
ECompleteMatch | |
ECompleteMatchThenSendKey | |
ECallAttempted | |
EServiceNumMatch | |
Member Data Documentation
TInt
iCapturedKey
TInt
| iCapturedKey | [private] |
CPhCltEmergencyCallObserver * iEmergencyCallObserver
CPhCltEmergencyCallObserver * | iEmergencyCallObserver | [private] |
Pointer to emergency call observer object
CPeriodic * iKeyTimeoutTimer
MAknEcsObserver * iObserver
CPhCltEmergencyCall * iPhCltEmergencyCall
CPhCltEmergencyCall * | iPhCltEmergencyCall | [private] |
Phone client interface of emergency call.
CAknMatchingCharacterQueue * iQueue
CAknMatchingCharacterQueue * | iQueue | [private] |
TBool
iServiceCallEnabled
TBool
| iServiceCallEnabled | [private] |
Boolean to check if service call is enabled during device or key lock
TBuf< KAknEcsMaxMatchingLength > iSpare_3
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.