60
|
1 |
/*
|
|
2 |
*
|
|
3 |
* Copyright (c) <2010> Comarch S.A. and/or its subsidiary(-ies).
|
|
4 |
* All rights reserved.
|
|
5 |
* This component and the accompanying materials are made available
|
|
6 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
7 |
* which accompanies this distribution, and is available
|
|
8 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
9 |
*
|
|
10 |
* Original Contributors:
|
|
11 |
* Comarch S.A. - original contribution.
|
|
12 |
*
|
|
13 |
* Contributors:
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef HSHFPPHONESTATUSINFORMATION_H
|
|
20 |
#define HSHFPPHONESTATUSINFORMATION_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
|
|
24 |
#include "hfpfeaturecommons.h"
|
|
25 |
|
|
26 |
class CHsHFPCommand;
|
|
27 |
class CHsHFPSettings;
|
|
28 |
|
|
29 |
/**
|
|
30 |
* @brief Represents "Phone status information" feature
|
|
31 |
*/
|
|
32 |
class CHsHFPPhoneStatusInformation : public CBase,
|
|
33 |
public MHsHFPProcedureCommons
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Two-phased constructor.
|
|
39 |
*
|
|
40 |
* @param aObserver feature observer
|
|
41 |
*
|
|
42 |
* @return instance of class
|
|
43 |
*/
|
|
44 |
static CHsHFPPhoneStatusInformation* NewL(
|
|
45 |
MHsHFPFeatureProviderObserver* aObserver);
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Two-phased constructor.
|
|
49 |
*
|
|
50 |
* @param aObserver feature observer
|
|
51 |
*
|
|
52 |
* @return instance of class
|
|
53 |
*/
|
|
54 |
static CHsHFPPhoneStatusInformation* NewLC(
|
|
55 |
MHsHFPFeatureProviderObserver* aObserver);
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Destructor.
|
|
59 |
*/
|
|
60 |
~CHsHFPPhoneStatusInformation();
|
|
61 |
|
|
62 |
public:
|
|
63 |
//Method inherited from MHsHFPProcedureCommons
|
|
64 |
TInt ProcessCommand(const CHsHFPCommand &aInputCmd,
|
|
65 |
CHsHFPCommand &aOutputCmd);
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Informs about call status
|
|
69 |
*
|
|
70 |
* @return ETrue if call is ongoing, EFalse otherwise
|
|
71 |
*/
|
|
72 |
TBool IsCallOngoing();
|
|
73 |
|
|
74 |
private:
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Constructor for performing 1st stage construction
|
|
78 |
*
|
|
79 |
* @param aObserver feature observer
|
|
80 |
*/
|
|
81 |
CHsHFPPhoneStatusInformation(MHsHFPFeatureProviderObserver* aObserver);
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Constructor for performing 2nd stage construction
|
|
85 |
*/
|
|
86 |
void ConstructL();
|
|
87 |
|
|
88 |
private:
|
|
89 |
|
|
90 |
/**
|
|
91 |
* Checks indicator and decides which particular handler should be invoked
|
|
92 |
*
|
|
93 |
* @param aCommand CIEV command
|
|
94 |
*/
|
|
95 |
void HandleIndicatorL(const CHsHFPCommand* aCommand);
|
|
96 |
|
|
97 |
/**
|
|
98 |
* Handles call indicator
|
|
99 |
*
|
|
100 |
* @param aCommand CIEV command
|
|
101 |
*/
|
|
102 |
void HandleCallIndicatorL(const CHsHFPCommand* aCommand);
|
|
103 |
|
|
104 |
/**
|
|
105 |
* Handles service indicator
|
|
106 |
*
|
|
107 |
* @param aCommand CIEV command
|
|
108 |
*/
|
|
109 |
void HandleServiceIndicatorL(const CHsHFPCommand* aCommand);
|
|
110 |
|
|
111 |
/**
|
|
112 |
* Handles callsetup indicator
|
|
113 |
*
|
|
114 |
* @param aCommand CIEV command
|
|
115 |
*/
|
|
116 |
void HandleCallsetupIndicatorL(const CHsHFPCommand* aCommand);
|
|
117 |
|
|
118 |
/**
|
|
119 |
* Handles callheld indicator
|
|
120 |
*
|
|
121 |
* @param aCommand CIEV command
|
|
122 |
*/
|
|
123 |
void HandleCallheldIndicatorL(const CHsHFPCommand* aCommand);
|
|
124 |
|
|
125 |
/**
|
|
126 |
* Handles signal indicator
|
|
127 |
*
|
|
128 |
* @param aCommand CIEV command
|
|
129 |
*/
|
|
130 |
void HandleSignalIndicatorL(const CHsHFPCommand* aCommand);
|
|
131 |
|
|
132 |
/**
|
|
133 |
* Handles roam indicator
|
|
134 |
*
|
|
135 |
* @param aCommand CIEV command
|
|
136 |
*/
|
|
137 |
void HandleRoamingIndicatorL(const CHsHFPCommand* aCommand);
|
|
138 |
|
|
139 |
/**
|
|
140 |
* Handles battery charge indicator
|
|
141 |
*
|
|
142 |
* @param aCommand CIEV command
|
|
143 |
*/
|
|
144 |
void HandleBatteryIndicatorL(const CHsHFPCommand* aCommand);
|
|
145 |
|
|
146 |
private:
|
|
147 |
/** Pointer to observer */
|
|
148 |
MHsHFPFeatureProviderObserver* iObserver;
|
|
149 |
|
|
150 |
/** Denotes if OK command is expected */
|
|
151 |
TBool iWaitingForOK;
|
|
152 |
|
|
153 |
/** Denotes if COPS command is expected */
|
|
154 |
TBool iWaitingForCOPSFromAG;
|
|
155 |
|
|
156 |
/** Profile setting */
|
|
157 |
CHsHFPSettings* iSettings;
|
|
158 |
};
|
|
159 |
|
|
160 |
#endif // HSHFPPHONESTATUSINFORMATION_H
|