class CPhCltExtPhoneBase : public CActive |
It defines dial interface for phone client.
Usage:
To dial, you must have a string of characters from set { 0, 1, 2, .. 9, #, *, +, p, P, w, W }. It is the only mandatory parameter. String may also contain other characters, but then only a note is displayed. So you should proceed as follows: 1. Check that string is acceptable. (application specific grammar) 2. If not, stop. Otherwise continue. 3. Convert to string acceptable by phoneclient. Note PhCltUtils class may help. 4. Dial using the class.
Note that dialling does not always mean creating a call. (E.g. *#43# makes phone to interrogate status of call waiting.)
In order to dial, you need instance of CPhCltExtPhoneBase . You can create one as follows: iExtCall = CPhCltExtPhoneBase::NewL( this ); (the parameter is pointer to observer)
Then you must fill dial parameters to instance of TPhCltExtPhoneDialData. (you can read more details from its header)
TPhCltExtPhoneDialData data; data.SetTelephoneNumber( .. ); ..
And finally, you can dial. Note that the method is asynchronous and observer will be informed when phone starts dialing.
iExtCall->DialL( data );
Finally, you can delete the instance. If dialing is ongoing, this should be done after observer has been informed. You can also delete before that, but then the request might also be canceled.
Public Member Functions | |
---|---|
void | DialL ( CPhCltExtPhoneDialData &) |
IMPORT_C CPhCltExtPhoneBase * | NewL ( MPhCltExtPhoneObserver *) |
Protected Member Functions | |
---|---|
CPhCltExtPhoneBase ( MPhCltExtPhoneObserver *) |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Protected Attributes | |
---|---|
MPhCltExtPhoneObserver * | iObserver |
Inherited Attributes | |
---|---|
CActive::iStatus |
CPhCltExtPhoneBase | ( | MPhCltExtPhoneObserver * | aObserver | ) | [protected] |
C++ constructor.
MPhCltExtPhoneObserver * aObserver |
void | DialL | ( | CPhCltExtPhoneDialData & | aData | ) | [pure virtual] |
Makes a new call. This is the preferred way of dialling!
CPhCltExtPhoneDialData & aData | The object containing the parameters for the dial request. |
IMPORT_C CPhCltExtPhoneBase * | NewL | ( | MPhCltExtPhoneObserver * | aObserver | ) | [static] |
Create an instance that implements the interface.
MPhCltExtPhoneObserver * 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.