37
|
1 |
/*
|
|
2 |
* Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Header file of the CPEParserPhoneNumberHandler class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CPEPARSERPHONENUMBERHANDLER_H
|
|
20 |
#define CPEPARSERPHONENUMBERHANDLER_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <cphonegsmphonenumberhandler.h>
|
|
24 |
#include <pevirtualengine.h>
|
|
25 |
|
|
26 |
// CONSTANTS
|
|
27 |
const TUint KDtmfPlus = '+';
|
|
28 |
const TUint KDtmfWait = 'w';
|
|
29 |
|
|
30 |
// MACROS
|
|
31 |
// None.
|
|
32 |
|
|
33 |
// DATA TYPES
|
|
34 |
// None.
|
|
35 |
|
|
36 |
// FUNCTION PROTOTYPES
|
|
37 |
// None.
|
|
38 |
|
|
39 |
// FORWARD DECLARATIONS
|
|
40 |
class MPECallHandling;
|
|
41 |
class CPEMessageHandler;
|
|
42 |
class MPEDataStore;
|
|
43 |
|
|
44 |
// CLASS DECLARATION
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Handles phone related messages from the CPEPhoneModel object.
|
|
48 |
*
|
|
49 |
* @lib PhoneEngineGsm.lib
|
|
50 |
* @since since S90 1.0
|
|
51 |
*/
|
|
52 |
NONSHARABLE_CLASS( CPEParserPhoneNumberHandler ) : public CPhoneGsmPhoneNumberHandler
|
|
53 |
{
|
|
54 |
public: //Constructors and descructor
|
|
55 |
|
|
56 |
/**
|
|
57 |
* C++ default constructor.
|
|
58 |
*/
|
|
59 |
CPEParserPhoneNumberHandler(
|
|
60 |
CPEMessageHandler& aOwner,
|
|
61 |
MPECallHandling& aCallHandling,
|
|
62 |
MPEDataStore& aGsmDataStore );
|
|
63 |
|
|
64 |
|
|
65 |
public: // Functions from base classes
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Process dial to number(derived from CPEGsmPhoneNumberHandler)
|
|
69 |
* @since since S90 1.0
|
|
70 |
* @param aNumber main number part.
|
|
71 |
* @param aDtmfPostfix dtmf postfix.
|
|
72 |
* @param aClir clir part.
|
|
73 |
*/
|
|
74 |
void ProcessDialToNumberL(
|
|
75 |
const TDesC& aNumber,
|
|
76 |
const TDesC& aDtmfPostfix,
|
|
77 |
TClir aClir );
|
|
78 |
|
|
79 |
private:
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Removes non-GSM standard postfix characters before dialling attempt.
|
|
83 |
* Leaves with ECCPErrorInvalidPhoneNumber if recognizes + char.
|
|
84 |
* @since 5.0
|
|
85 |
* @param aPostfix postfix to modify.
|
|
86 |
* @return modified postfix.
|
|
87 |
*/
|
|
88 |
TPtrC FilterPostfixL( TPtrC aPostfix );
|
|
89 |
|
|
90 |
/**
|
|
91 |
* Checks if phone is offline
|
|
92 |
* @since 5.0
|
|
93 |
* @return offline status
|
|
94 |
*/
|
|
95 |
TBool IsPhoneOffline();
|
|
96 |
|
|
97 |
private:
|
|
98 |
// CPEMessageHandler object which owns this requester.
|
|
99 |
CPEMessageHandler& iOwner;
|
|
100 |
// CPEPhoneData is used to create request to the CallHandling subsystem.
|
|
101 |
MPECallHandling& iCallHandling;
|
|
102 |
// Reference to common data store
|
|
103 |
MPEDataStore& iDataStore;
|
|
104 |
};
|
|
105 |
|
|
106 |
#endif // CPEPARSERPHONENUMBERHANDLER_H
|
|
107 |
|
|
108 |
// End of File
|
|
109 |
|