1 /* |
|
2 * Copyright (c) 2002-2009 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: It is responsible of parsing GSM specified supplementary |
|
15 * services that can be entered during calls. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONEGSMSSCALLPARSER_H |
|
21 #define CPHONEGSMSSCALLPARSER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "cphonegsmparserbase.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 /* |
|
30 * SUPPLEMENTARY SERVICE UIDS - DURING CALLS |
|
31 * |
|
32 * Final commands depend on the state of the phone and that's why they |
|
33 * decided in handler. |
|
34 */ |
|
35 |
|
36 const TUint32 KPhoneUidCommand0 = |
|
37 PHONE_MAKE_UID( KPhoneGsmUidSupplementaryServiceDuringCall, 0 ); |
|
38 const TUint32 KPhoneUidCommand1 = |
|
39 PHONE_MAKE_UID( KPhoneGsmUidSupplementaryServiceDuringCall, 1 ); |
|
40 const TUint32 KPhoneUidCommand2 = |
|
41 PHONE_MAKE_UID( KPhoneGsmUidSupplementaryServiceDuringCall, 2 ); |
|
42 const TUint32 KPhoneUidCommand3 = |
|
43 PHONE_MAKE_UID( KPhoneGsmUidSupplementaryServiceDuringCall, 3 ); |
|
44 const TUint32 KPhoneUidCommand4 = |
|
45 PHONE_MAKE_UID( KPhoneGsmUidSupplementaryServiceDuringCall, 10 ); |
|
46 |
|
47 // CLASS DECLARATION |
|
48 |
|
49 /** |
|
50 * It is responsible of parsing GSM specified supplementary services |
|
51 * that can be entered during calls. |
|
52 * |
|
53 * @since 1.0 |
|
54 * @lib phoneparser.lib |
|
55 */ |
|
56 NONSHARABLE_CLASS( CPhoneGsmSsCallParser ) |
|
57 : public CPhoneGsmParserBase |
|
58 { |
|
59 public: // Constructors and destructor |
|
60 |
|
61 /** |
|
62 * Two-phased constructor. |
|
63 */ |
|
64 static CPhoneGsmSsCallParser* NewLC(); |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From CPhoneGsmParserBase. |
|
70 * Parses ss strings. |
|
71 * |
|
72 * @param aString string to parse. |
|
73 * @param aResult It will contain result. |
|
74 * @param aOptions It contains options. |
|
75 * @return ETrue iff parsed successfully. |
|
76 */ |
|
77 TBool ParseL( |
|
78 const TDesC& aString, |
|
79 CPhoneGsmParserResult& aResult, |
|
80 CPhoneGsmOptionContainerBase& aOptions ); |
|
81 |
|
82 private: |
|
83 |
|
84 /** |
|
85 * C++ default constructor. |
|
86 */ |
|
87 CPhoneGsmSsCallParser(); |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // CPHONEGSMSSCALLPARSER_H |
|
92 |
|
93 // End of File |
|