|
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: Subsession for Ussd. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPHSRVSUBSESSIONUSSD_H |
|
19 #define CPHSRVSUBSESSIONUSSD_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPhSrvSubSessionBase.h" |
|
24 #include "MPhSrvUssdMessageSentObserver.h" |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * USSD Subsession. |
|
31 * |
|
32 * @since 1.0 |
|
33 */ |
|
34 class CPhSrvSubSessionUssd : |
|
35 public CPhSrvSubSessionBase, |
|
36 public MPhSrvUssdMessageSentObserver |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Constructor. |
|
42 * |
|
43 * @param aSession The session where this subsession belongs. |
|
44 */ |
|
45 CPhSrvSubSessionUssd( CPhSrvSession& aSession ); |
|
46 |
|
47 |
|
48 private: // Functions from base classes |
|
49 |
|
50 /** |
|
51 * @see MPhSrvMessageDecoder |
|
52 */ |
|
53 TBool PhSrvMessageDecoderCanProcessMessage( TInt aFunction ); |
|
54 |
|
55 /** |
|
56 * @see MPhSrvMessageProcessor |
|
57 */ |
|
58 void PhSrvMessageProcessorHandleMessageL( const RMessage2& aMessage ); |
|
59 |
|
60 /** |
|
61 * @see MPhSrvUssdMessageSentObserver |
|
62 */ |
|
63 void UssdMessageSentObserverHandleResult( TInt aError ); |
|
64 |
|
65 |
|
66 private: // SubSession function handlers |
|
67 |
|
68 void CmdSubSessionCloseL( const RMessage2& aMessage ); |
|
69 |
|
70 void CmdSubSessionSendMessageL( const RMessage2& aMessage ); |
|
71 |
|
72 void CmdSubSessionSendMessageCancelL( const RMessage2& aMessage ); |
|
73 |
|
74 void CmdSubSessionStartEditingL( const RMessage2& aMessage ); |
|
75 |
|
76 void CmdSubSessionAppStartingL( const RMessage2& aMessage ); |
|
77 |
|
78 void CmdSubSessionAppTerminatingL( const RMessage2& aMessage ); |
|
79 |
|
80 void CmdSubSessionAppToForegroundL( const RMessage2& aMessage ); |
|
81 |
|
82 void CmdSubSessionAppToBackgroundL( const RMessage2& aMessage ); |
|
83 |
|
84 void CmdSubSessionStartSATL( const RMessage2& aMessage ); |
|
85 |
|
86 void CmdSubSessionStopSATL( const RMessage2& aMessage ); |
|
87 |
|
88 |
|
89 private: // Data |
|
90 |
|
91 // Indicates whether we have a pending send request. |
|
92 TBool iHavePendingSendMessagePointer; |
|
93 |
|
94 // Initialized when the client initiates a send message request. |
|
95 RMessage2 iPendingSendMessagePointer; |
|
96 |
|
97 }; |
|
98 |
|
99 |
|
100 #endif // CPHSRVSUBSESSIONUSSD_H |
|
101 |
|
102 |
|
103 // End of File |