class CPhCltEmergencyCall : public CActive |
Phone Client Emergency Call Api for emergency number query and emergency dialing.
Example:
// Creates an instance of the class CPhCltEmergencyCall* emergencyCall = CPhCltEmergencyCall::NewL( this );
CleanupStack::PushL( emergencyCall ); TPhCltEmergencyNumber emNumber;
// Number contains DTMF code _LIT( KTestNumber, "112p123" ); emNumber.Copy( KTestNumber ); TBool isEmergency( EFalse );
// Check if this number is considered as an emergency number TInt error = emergencyCall->IsEmergencyPhoneNumber( emNumber, isEmergency );
// Dial if ( isEmergency && !error ) { emergencyCall->DialEmergencyCallL( emNumber ); }
// Deletes emergencyCall CleanupStack::PopAndDestroy( emergencyCall );
Public Member Functions | |
---|---|
void | DialEmergencyCallL (const TDesC &) |
IMPORT_C TInt | FindEmergencyPhoneNumber ( TDes &, TBool &) |
IMPORT_C TInt | IsEmergencyPhoneNumber (const TDesC &, TBool &) |
IMPORT_C TInt | IsEmergencyPhoneNumber (const TDesC &, TDes &, TBool &) |
IMPORT_C CPhCltEmergencyCall * | NewL ( MPhCltEmergencyCallObserver *) |
Protected Member Functions | |
---|---|
CPhCltEmergencyCall ( MPhCltEmergencyCallObserver *) |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Protected Attributes | |
---|---|
MPhCltEmergencyCallObserver * | iObserver |
Inherited Attributes | |
---|---|
CActive::iStatus |
CPhCltEmergencyCall | ( | MPhCltEmergencyCallObserver * | aObserver | ) | [protected] |
C++ constructor.
MPhCltEmergencyCallObserver * aObserver |
void | DialEmergencyCallL | ( | const TDesC & | aNumber | ) | [pure virtual] |
Initiates an emergency call.
If the aNumber parameter supplies an "empty" buffer the call is created either dialing the default emergency phone number or use the SET UP EMERGENCY request that does not contain a dialling number.
Leaves with KErrArgument, if parameter aNumber was not an emergency number.
const TDesC & aNumber | Emergency number to be dialed. The aNumber parameter should be a buffer and the clients are provided with a typedef called TPhCltEmergencyNumber. |
IMPORT_C TInt | FindEmergencyPhoneNumber | ( | TDes & | aNumber, |
TBool & | aIsEmergencyNumber | |||
) | [pure virtual] |
Method can be used to check if the number specified contains a valid emergency number in the end of the number.
TDes & aNumber | Number to be queried, matched emergency number is returned in this parameter. The aNumber parameter should be a buffer and the clients are provided with a typedef called TPhCltTelephoneNumber. |
TBool & aIsEmergencyNumber | If ETrue, then the aNumber parameter was emergency number. |
IMPORT_C TInt | IsEmergencyPhoneNumber | ( | const TDesC & | aNumber, |
TBool & | aIsEmergencyNumber | |||
) | [pure virtual] |
Returns information whether the number specified was an emergency number.
const TDesC & aNumber | Number to be queried. aNumber might contain prefix (SS code) and/or postfix (DTMF part). The aNumber parameter should be a buffer and the clients are provided with a typedef called TPhCltEmergencyNumber. |
TBool & aIsEmergencyNumber | If ETrue, then the aNumber parameter included emergency number. |
IMPORT_C TInt | IsEmergencyPhoneNumber | ( | const TDesC & | aNumber, |
TDes & | aMatchedEmergencyNumber, | |||
TBool & | aIsEmergencyNumber | |||
) | [pure virtual] |
Returns information whether the number specified was an emergency number and also returns the plain emergency number.
const TDesC & aNumber | Number to be queried.aNumber might contain prefix (SS code) and/or postfix (DTMF part). The aNumber parameter should be a buffer and the clients are provided with a typedef called TPhCltEmergencyNumber. |
TDes & aMatchedEmergencyNumber | Matched emergencynumber without prefix or postfix is returned in this parameter. The aMatchedEmergencyNumber parameter should be a buffer and the clients are provided with atypedef called TPhCltEmergencyNumber. |
TBool & aIsEmergencyNumber | If ETrue, then the aNumber parameter included emergency number. |
IMPORT_C CPhCltEmergencyCall * | NewL | ( | MPhCltEmergencyCallObserver * | aObserver | ) | [static] |
Create an instance that implements the interface.
MPhCltEmergencyCallObserver * aObserver | It is the observer for the instance. |
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.