author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:33:21 +0100 | |
branch | GCC_SURGE |
changeset 51 | f39ed5e045e0 |
parent 21 | 92ab7f8d0eab |
parent 45 | 6b911d05207e |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2006 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: |
|
15 |
* Class that does processing for Phone Engine messages that are common |
|
16 |
* for all GSM states. Most of the GSM states are intressed of these |
|
17 |
* messages but due to the class architecture they don't have any single |
|
18 |
* state class to be put into. This class exists to minimize duplicate |
|
19 |
* code so that not every GSM class need to implement these same handlings |
|
20 |
* for the same messages. |
|
21 |
* |
|
22 |
*/ |
|
23 |
||
24 |
||
25 |
#ifndef CPHONEGENERALGSMMESSAGESHANDLER_H |
|
26 |
#define CPHONEGENERALGSMMESSAGESHANDLER_H |
|
27 |
||
28 |
// INCLUDES |
|
29 |
#include <w32std.h> |
|
30 |
||
31 |
// FORWARD DECLARATIONS |
|
32 |
class MPhoneStateMachine; |
|
33 |
class MPhoneViewCommandHandle; |
|
34 |
class MPhoneState; |
|
35 |
||
36 |
// CLASS DECLARATION |
|
37 |
||
38 |
/** |
|
39 |
* Class that does processing for Phone Engine messages that are common |
|
40 |
* for all GSM states. Most of the GSM states are intressed of these |
|
41 |
* messages but due to the class architecture they don't have any single |
|
42 |
* state class to be put into. This class exists to minimize duplicate |
|
43 |
* code so that not every GSM class need to implement these same handlings |
|
44 |
* for the same messages. |
|
45 |
* |
|
46 |
*/ |
|
47 |
class CPhoneGeneralGsmMessagesHandler : public CBase |
|
48 |
{ |
|
49 |
public: |
|
50 |
||
51 |
/** |
|
52 |
* Creates the General GSM Messages Handler instance |
|
53 |
* @param aPhoneState: active state |
|
54 |
* @param aViewCommandHandle: handle to the PhoneUIView |
|
55 |
* @return an instance of class CPhoneGeneralGsmMessagesHandler |
|
56 |
*/ |
|
57 |
static CPhoneGeneralGsmMessagesHandler* NewL( |
|
58 |
MPhoneStateMachine& aStateMachine, |
|
59 |
MPhoneViewCommandHandle& aViewCommandHandle, |
|
60 |
MPhoneState& aActiveState ); |
|
61 |
||
62 |
/** |
|
63 |
* Destructor. |
|
64 |
*/ |
|
65 |
virtual ~CPhoneGeneralGsmMessagesHandler(); |
|
66 |
||
67 |
/** |
|
68 |
* A message handling function for Phone Engine messages |
|
69 |
* @param aMessage Message from Phone Engine |
|
70 |
* @param aCallId Call id the message concerns |
|
71 |
*/ |
|
72 |
void HandlePhoneEngineMessageL( |
|
73 |
const TInt aMessage, |
|
74 |
TInt aCallId ); |
|
75 |
||
76 |
||
77 |
private: |
|
78 |
||
79 |
/** |
|
80 |
* By default EPOC constructor is private. |
|
81 |
*/ |
|
82 |
CPhoneGeneralGsmMessagesHandler( |
|
83 |
MPhoneStateMachine& aStateMachine, |
|
84 |
MPhoneViewCommandHandle& aViewCommandHandle, |
|
85 |
MPhoneState& aActiveState ); |
|
86 |
||
87 |
||
88 |
private: |
|
89 |
||
90 |
/** |
|
91 |
* Show global InfoNote |
|
92 |
* @param aResourceId resource id to be resolved |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
* @param aNotificationDialog ETrue if notification dialog should be used |
37 | 94 |
*/ |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
95 |
void SendGlobalInfoNoteL( TInt aResourceId, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
96 |
TBool aNotificationDialog = EFalse ); |
37 | 97 |
|
98 |
/** |
|
99 |
* Shows divert indication or sets internal divert flag |
|
100 |
* depending in which order we receive Incoming and |
|
101 |
* CallForwarded messages. |
|
102 |
*/ |
|
103 |
void HandleIncomingCallForwardedL(); |
|
104 |
||
105 |
/** |
|
106 |
* Show global ErrorNote |
|
107 |
* @param aResourceId resource id to be resolved |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
108 |
* @param aNotificationDialog ETrue if notification dialog should be used |
37 | 109 |
*/ |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
110 |
void SendGlobalErrorNoteL( TInt aResourceId, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
111 |
TBool aNotificationDialog = EFalse ); |
37 | 112 |
|
113 |
||
114 |
private: |
|
115 |
||
116 |
/** |
|
117 |
* Currently active state. |
|
118 |
*/ |
|
119 |
MPhoneStateMachine& iStateMachine; |
|
120 |
||
121 |
/** |
|
122 |
* Handle for sending view commands. |
|
123 |
*/ |
|
124 |
MPhoneViewCommandHandle& iViewCommandHandle; |
|
125 |
||
126 |
/** |
|
127 |
* Currently active state object. |
|
128 |
*/ |
|
129 |
MPhoneState& iActiveState; |
|
130 |
||
131 |
}; |
|
132 |
||
133 |
#endif // CPHONEGENERALGSMMESSAGESHANDLER_H |
|
134 |
||
135 |
// End of File |