1 /* |
|
2 * Copyright (c) 2002 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: CSysApPowerKeyMenuObserver class definition. This class |
|
15 * implements the observer for getting the menu selection from |
|
16 * CAknGlobalListQuery. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef SYSAPPOWERKEYMENUOBSERVER_H |
|
22 #define SYSAPPOWERKEYMENUOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CSysApAppUi; |
|
29 |
|
30 /** |
|
31 * CSysApPowerKeyMenuObserver |
|
32 * |
|
33 * @lib sysap |
|
34 * @since 1.0 |
|
35 */ |
|
36 |
|
37 class CSysApPowerKeyMenuObserver : public CActive |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * Constructor |
|
42 * @param CSysApAppUi& aSysApAppUi |
|
43 * @return void |
|
44 */ |
|
45 CSysApPowerKeyMenuObserver( CSysApAppUi& aSysApAppUi ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CSysApPowerKeyMenuObserver(); |
|
51 |
|
52 /** |
|
53 * This method activates the active object. The iStatus is given to |
|
54 * CAknGlobalListQuery with a call iGlobalListQuery->ShowListQueryL( |
|
55 * profileNameArray, iSysApPowerKeyMenuObserver->iStatus, KProfileListInitialIndex ); |
|
56 * from CSysApAppUi |
|
57 * @param note |
|
58 * @return void |
|
59 */ |
|
60 void Start(); |
|
61 |
|
62 private: |
|
63 /** |
|
64 * C++ default constructor. |
|
65 * @param None |
|
66 * @return void |
|
67 */ |
|
68 CSysApPowerKeyMenuObserver(); |
|
69 |
|
70 private: |
|
71 /** |
|
72 * From CActive. Cancels the active object from observing the list query |
|
73 * @param None |
|
74 * @return void |
|
75 */ |
|
76 void DoCancel(); |
|
77 /** |
|
78 * From CActive. Gets called by active object when a selection is done. |
|
79 * @param None |
|
80 * @return void |
|
81 */ |
|
82 void RunL(); |
|
83 |
|
84 /** |
|
85 * From CActive. Gets called by active object when leave happens inside RunL |
|
86 * @param None |
|
87 * @return void |
|
88 */ |
|
89 TInt RunError( TInt aError ); |
|
90 |
|
91 private: |
|
92 CSysApAppUi& iSysApAppUi; |
|
93 }; |
|
94 |
|
95 #endif //SYSAPPOWERKEYMENUOBSERVER_H |
|
96 |
|
97 // End of File |
|