|
1 /* |
|
2 * Copyright (c) 2010 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 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * Description : |
|
13 * |
|
14 */ |
|
15 |
|
16 #ifndef CBSETTTINGHANDLER_H |
|
17 #define CBSETTTINGHANDLER_H |
|
18 |
|
19 #include <etelmm.h> |
|
20 |
|
21 class CCLCKCommandHandler; |
|
22 |
|
23 /** |
|
24 * AO class handling Call Barring setting |
|
25 */ |
|
26 NONSHARABLE_CLASS(CCBSettingHandler) : public CActive |
|
27 { |
|
28 public: |
|
29 static CCBSettingHandler* NewL(RMobilePhone& aPhone); |
|
30 ~CCBSettingHandler(); |
|
31 void Start(TRequestStatus& aReqStatus, TInt aInfoClass, RMobilePhone::TMobilePhoneCBCondition aCondition, |
|
32 RMobilePhone::TMobilePhoneCBChangeV1* aCBInfo); |
|
33 void SetCBForServiceGroup(); |
|
34 |
|
35 private: // methods from CActive |
|
36 virtual void RunL(); |
|
37 virtual void DoCancel(); |
|
38 // RunError not needed as RunL does not leave |
|
39 |
|
40 private: |
|
41 CCBSettingHandler(RMobilePhone& aPhone); |
|
42 void ConstructL(); |
|
43 void Complete(TInt aError); |
|
44 |
|
45 private: |
|
46 RMobilePhone& iPhone; |
|
47 RArray<RMobilePhone::TMobileService> iClassArray; |
|
48 RMobilePhone::TMobilePhoneCBCondition iCondition; |
|
49 RMobilePhone::TMobilePhoneCBChangeV1* iCBInfo; |
|
50 |
|
51 TRequestStatus* iQueuedStatus; |
|
52 }; |
|
53 |
|
54 #endif // CBSETTTINGHANDLER_H |