author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 37 | ba76fc04e6c2 |
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: GSM-specific in-call handling. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef CPHONEGSMINCALL_H |
|
20 |
#define CPHONEGSMINCALL_H |
|
21 |
||
22 |
// INCLUDES |
|
23 |
#include "cphonestateincall.h" |
|
24 |
#include "tphonecmdparamboolean.h" |
|
25 |
||
26 |
// FORWARD DECLARATIONS |
|
27 |
||
28 |
// CLASS DECLARATION |
|
29 |
/** |
|
30 |
* GSM-specific in-call handling. |
|
31 |
*/ |
|
32 |
class CPhoneGsmInCall : public CPhoneStateInCall |
|
33 |
{ |
|
34 |
public: |
|
35 |
||
36 |
/** |
|
37 |
* Destructor. |
|
38 |
*/ |
|
39 |
virtual ~CPhoneGsmInCall(); |
|
40 |
||
41 |
/** |
|
42 |
* Creates the GSM in-call state class |
|
43 |
* @param aStateMachine: a state machine |
|
44 |
* @param aViewCommandHandle: handle to the PhoneUIView |
|
45 |
* @return an instance of class CPhoneEmergency |
|
46 |
*/ |
|
47 |
static CPhoneGsmInCall* NewL( |
|
48 |
MPhoneStateMachine* aStateMachine, |
|
49 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
50 |
MPhoneCustomization* aPhoneCustomization ); |
|
51 |
||
52 |
/** |
|
53 |
* A message handling function for Phone Engine messages |
|
54 |
* @param aMessage Message from Phone Engine |
|
55 |
* @param aCallId Call id the message concerns |
|
56 |
*/ |
|
57 |
void HandlePhoneEngineMessageL( |
|
58 |
const TInt aMessage, |
|
59 |
TInt aCallId ); |
|
60 |
||
61 |
protected: |
|
62 |
||
63 |
/** |
|
64 |
* By default EPOC constructor is private. |
|
65 |
*/ |
|
66 |
CPhoneGsmInCall( |
|
67 |
MPhoneStateMachine* aStateMachine, |
|
68 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
69 |
MPhoneCustomization* aPhoneCustomization ); |
|
70 |
||
71 |
/** |
|
72 |
* Handles commands. |
|
73 |
* @param aCommand It is the code of the command to be handled. |
|
74 |
* @returns boolean value was the command handled by the state |
|
75 |
* (ETrue) or not (EFalse) |
|
76 |
*/ |
|
77 |
IMPORT_C TBool HandleCommandL( TInt aCommand ); |
|
78 |
||
79 |
/** |
|
80 |
* ConstructL() |
|
81 |
*/ |
|
82 |
virtual void ConstructL(); |
|
83 |
||
84 |
/** |
|
85 |
* Show Colp note if necessary |
|
86 |
*/ |
|
87 |
void HandleColpNoteL( TInt aCallId ); |
|
88 |
||
89 |
/** |
|
90 |
* Bring call handling to foreground when moved to incoming state |
|
91 |
**/ |
|
92 |
void BringIncomingToForegroundL(); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
|
37 | 94 |
private: |
95 |
||
96 |
void ReplaceCallL(); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
97 |
|
37 | 98 |
}; |
99 |
||
100 |
#endif // CPHONEGSMINCALL_H |
|
101 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
102 |
// End of File |