|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Sub Session Ext Call. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPHSRVSUBSESSIONEXTCALL_H |
|
19 #define CPHSRVSUBSESSIONEXTCALL_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPhSrvSubSessionBase.h" |
|
24 #include <cphcltextphonedialdata.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Ext Call Subsession. |
|
30 * |
|
31 * @since 1.0 |
|
32 */ |
|
33 class CPhSrvSubSessionExtCall : public CPhSrvSubSessionBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 * |
|
40 * @param aSession The session where this subsession belongs. |
|
41 */ |
|
42 CPhSrvSubSessionExtCall( CPhSrvSession& aSession ); |
|
43 |
|
44 |
|
45 private: // Functions from base classes |
|
46 |
|
47 /** |
|
48 * @see MPhSrvMessageDecoder |
|
49 */ |
|
50 TBool PhSrvMessageDecoderCanProcessMessage( TInt aFunction ); |
|
51 |
|
52 /** |
|
53 * @see MPhSrvMessageProcessor |
|
54 */ |
|
55 void PhSrvMessageProcessorHandleMessageL( const RMessage2& aMessage ); |
|
56 |
|
57 |
|
58 private: // SubSession function handlers |
|
59 |
|
60 /** |
|
61 * Close subsession |
|
62 * |
|
63 * @param aMessage Message to be processed. |
|
64 */ |
|
65 void CmdSubSessionCloseL( const RMessage2& aMessage ); |
|
66 |
|
67 /** |
|
68 * Makes call |
|
69 * |
|
70 * @param aMessage Message to be processed. |
|
71 */ |
|
72 void CmdSubSessionMakeCallL( const RMessage2& aMessage ); |
|
73 |
|
74 /** |
|
75 * Cancels call |
|
76 * |
|
77 * @param aMessage Message to be processed. |
|
78 */ |
|
79 void CmdSubSessionMakeCallCancelL( const RMessage2& aMessage ); |
|
80 |
|
81 /** |
|
82 * Creates call argument object |
|
83 * |
|
84 * @param aMessage Message to be processed. |
|
85 */ |
|
86 void CreateCallArgsL( const RMessage2& aMessage ); |
|
87 |
|
88 /** |
|
89 * Finds chars 'p' and 'w' from input string |
|
90 * |
|
91 * @param aString Input string (telephone number). |
|
92 * @return returns true if number contains chars 'p' or 'w' |
|
93 */ |
|
94 TBool IsDtmfPhoneNumber( const TDesC& aString ); |
|
95 |
|
96 private: // Data |
|
97 |
|
98 // Indicates whether we have an pending request. |
|
99 TBool iHavePendingDialRequestPointer; |
|
100 |
|
101 // Initialized when the client initiates an dial request. This object |
|
102 // will complete the request when the phone app has responded with |
|
103 // the result of the dial. |
|
104 RMessage2 iPendingDialRequestPointer; |
|
105 |
|
106 // Call arguments |
|
107 CPhCltExtPhoneDialData* iCallArgs; |
|
108 |
|
109 }; |
|
110 |
|
111 #endif // CPHSRVSUBSESSIONEXTCALL_H |
|
112 |
|
113 |
|
114 // End of File |