24
|
1 |
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Contains definition for classes that implement the indicator flags functionality
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalAll
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __CSIMINDICATOR_H__
|
|
24 |
#define __CSIMINDICATOR_H__
|
|
25 |
|
|
26 |
#include <et_phone.h>
|
|
27 |
#include "csimtimer.h"
|
|
28 |
#include <etelmm.h>
|
|
29 |
#include "CSimBatteryCharger.h"
|
|
30 |
#include "CSimNetworkStatus.h"
|
|
31 |
|
|
32 |
class CSimPhone;
|
|
33 |
class CTestConfigSection;
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Implements the RMobilePhone based functions that constitute the Indicator
|
|
37 |
* functionality provided by the SIM TSY.
|
|
38 |
*/
|
|
39 |
class CSimIndicator : public CBase, MTimerCallBack
|
|
40 |
{
|
|
41 |
public:
|
|
42 |
static CSimIndicator* NewL(CSimPhone* aPhone);
|
|
43 |
CSimIndicator(CSimPhone* aPhone);
|
|
44 |
~CSimIndicator();
|
|
45 |
TInt GetIndicatorCaps(TTsyReqHandle aReqHandle,TDes8* aPckg1, TDes8* aPckg2);
|
|
46 |
TInt GetIndicator(TTsyReqHandle aReqHandle, TDes8* aPckg1);
|
|
47 |
TInt NotifyIndicatorChange(TTsyReqHandle aReqHandle, TDes8* aPckg1);
|
|
48 |
void NotifyIndicatorChangeCancel();
|
|
49 |
const CTestConfigSection* CfgFile();
|
|
50 |
void CheckNotification();
|
|
51 |
|
|
52 |
private:
|
|
53 |
void ConstructL();
|
|
54 |
TUint32 IndicatorState();
|
|
55 |
void TimerCallBack(TInt aId);
|
|
56 |
|
|
57 |
private:
|
|
58 |
CSimPhone* iPhone; // < Pointer to the parent phone class.
|
|
59 |
CSimTimer* iTimer; // < Pointer to the owned timer class.
|
|
60 |
CSimBatteryCharger* iCharger; // < Pointer to the owned battery Charger
|
|
61 |
CSimNetworkStatus* iNetwork; //< pointer to the network status object
|
|
62 |
TInt iIndicatorCheckPeriod;
|
|
63 |
|
|
64 |
struct TPhoneIndicatorsInfo
|
|
65 |
{
|
|
66 |
TInt iNotificationNumber; //< notification number (Nth notification)
|
|
67 |
TInt iError; //< Error to return to client on this nth notification
|
|
68 |
};
|
|
69 |
|
|
70 |
CArrayFixFlat<TPhoneIndicatorsInfo>* iIndicatorsInfo; // <Array containing the indicators changes for this test
|
|
71 |
TUint32 iCurrentIndicator; // <Current value of the indicator
|
|
72 |
TInt iNotificationNumber;
|
|
73 |
|
|
74 |
TBool iIndicatorsChangeNotificationPending; // <Indicators notification request outstanding
|
|
75 |
TTsyReqHandle iIndicatorsChangeNotificationReqHandle; // <Indicators notification outstanding request handle
|
|
76 |
TUint32* iIndicatorsChangeNofificationValue; // <Indicators value pointer
|
|
77 |
};
|
|
78 |
|
|
79 |
#endif
|