|
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 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HBDEVICEPOWERMENUSYMBIAN_H |
|
19 #define HBDEVICEPOWERMENUSYMBIAN_H |
|
20 |
|
21 #if defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <centralrepository.h> |
|
25 #include <settingsinternalcrkeys.h> |
|
26 #include <ProfileEngineInternalCRKeys.h> |
|
27 #include <ProfileEngineSDKCRKeys.h> |
|
28 #include <MProfileEngineExtended2.h> |
|
29 #include "SysApAppUi.h" |
|
30 |
|
31 class CHbDevicePowerMenuPrivate; |
|
32 |
|
33 class CHbDevicePowerMenuSymbian : public CBase |
|
34 { |
|
35 public: |
|
36 |
|
37 static CHbDevicePowerMenuSymbian* NewL(CSysApAppUi& aSysApServer ); |
|
38 virtual ~CHbDevicePowerMenuSymbian(); |
|
39 |
|
40 //Displays Dialog |
|
41 void ShowL(); |
|
42 //Getters and Setters |
|
43 void SetVolume(TInt aVolume); |
|
44 void SetSilenceMode(TBool aEnable); |
|
45 void SetOfflineMode(TBool aChecked); |
|
46 void SetVibrationEnabled(TBool aEnable); |
|
47 void SetPowerOffEnabled(TBool aEnable); |
|
48 |
|
49 private: |
|
50 |
|
51 CHbDevicePowerMenuSymbian(CSysApAppUi& aSysApServer); |
|
52 void ConstructL(); |
|
53 |
|
54 private: |
|
55 friend class CHbDevicePowerMenuPrivate; |
|
56 //Used to set master Volume/Vibrate/Silence Mode in Control Panel |
|
57 MProfileEngineExtended2* iProfileEngine; |
|
58 //Used to Set and Get OfflineMode to and from Control Panel |
|
59 CRepository* iCenrepOffline; |
|
60 //Used to Get Master Volume/Vibrate/Silence Mode in Control Panel |
|
61 CRepository* iCenrepProfile; |
|
62 //Used to handle ShutDown |
|
63 CSysApAppUi& iSysApServer; |
|
64 CHbDevicePowerMenuPrivate* iPowerMenuPrivate; |
|
65 }; |
|
66 |
|
67 #endif // defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) |
|
68 |
|
69 #endif // HBDEVICEPOWERMENUSYMBIAN_H |
|
70 |
|
71 |