1 /* |
|
2 * Copyright (c) 2005 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: Header file for CFotaReminderDlg |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CFOTAREMINDERDLG_H |
|
21 #define CFOTAREMINDERDLG_H |
|
22 |
|
23 #include <AknCapServerClient.h> |
|
24 #include <aknradiobuttonsettingpage.h> |
|
25 |
|
26 |
|
27 class CFotaReminderDlg: public CAknRadioButtonSettingPage |
|
28 { |
|
29 public: //Constructors & destructors |
|
30 |
|
31 /** |
|
32 * Two-phased constructor. |
|
33 */ |
|
34 static CFotaReminderDlg* NewLC(TInt& aSelectedItem, CDesCArray* aItemArray, TInt& aEvent); |
|
35 static CFotaReminderDlg* NewL(TInt& aSelectedItem, CDesCArray* aItemArray, TInt& aEvent); |
|
36 |
|
37 /** |
|
38 * Destructor |
|
39 */ |
|
40 ~CFotaReminderDlg(); |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 virtual void ConstructL(); |
|
46 |
|
47 public: //other methods |
|
48 |
|
49 /** |
|
50 * Used to activate the radiobuttonsettingpage. |
|
51 * @param None |
|
52 * @return None |
|
53 */ |
|
54 void ActivateL(); |
|
55 |
|
56 /** |
|
57 * Process events from softkeys |
|
58 * @param aCommandId is the command id |
|
59 * @return None |
|
60 */ |
|
61 virtual void ProcessCommandL( TInt aCommandId ); |
|
62 |
|
63 /** |
|
64 * This routine routes the keys to the editor. |
|
65 * @param aKeyEvent is the key event |
|
66 * @param aType is the type of key event |
|
67 * @return indicates whether or not the key event was used by this control. |
|
68 */ |
|
69 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * Constructor |
|
75 */ |
|
76 CFotaReminderDlg(TInt& aSelectedItem, CDesCArray* aItemArray, TInt& aEvent); |
|
77 |
|
78 /** |
|
79 * From CEikDialog: Determines if the dialog can be closed. |
|
80 * @param aButtonId Identifier of the button pressed. |
|
81 * @return whether to close the dialog or not. |
|
82 */ |
|
83 TBool OkToExitL( TInt aButtonId ); |
|
84 |
|
85 /** |
|
86 * Suppress the menu/app key when reminder dialog is displayed |
|
87 * @param ETrue to Suppress, else EFalse |
|
88 * @return None |
|
89 */ |
|
90 |
|
91 void SuppressAppKey(TBool aValue); |
|
92 |
|
93 private: //data |
|
94 |
|
95 CAknSetStyleListBox* iList; |
|
96 |
|
97 //UI Server used for suppressing the menu/app key |
|
98 RAknUiServer iAppKeyClient; |
|
99 |
|
100 //Stores the user selected item on the radio button page |
|
101 TInt& iSelectedItem; |
|
102 |
|
103 //Stores the key event generated on radio button page |
|
104 TInt& iEvent; |
|
105 |
|
106 //Holds the state of menu/app key supress |
|
107 TBool iIsAppKeySuppressed; |
|
108 }; |
|
109 |
|
110 #endif //CFOTAREMINDERDLG_H |
|