1 /* |
|
2 * Copyright (c) 2009 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 |
|
19 #ifndef LOADGEN_SETTINGSVIEWDLG_H |
|
20 #define LOADGEN_SETTINGSVIEWDLG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <AknDialog.h> |
|
24 #include <eiklbo.h> |
|
25 #include <AknTabObserver.h> |
|
26 #include <akntabgrp.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CAknSettingItemArray; |
|
30 class CAknSettingStyleListBox; |
|
31 class CAknNavigationControlContainer; |
|
32 class CAknNavigationDecorator; |
|
33 class CAknTabGroup; |
|
34 class TLoadGenSettings; |
|
35 |
|
36 |
|
37 // CLASS DEFINITIONS |
|
38 |
|
39 class CLoadGenSettingsViewDlg : public CAknDialog, public MEikListBoxObserver, public MAknTabObserver |
|
40 { |
|
41 public: |
|
42 static CLoadGenSettingsViewDlg* NewL(TLoadGenSettings& aSettings); |
|
43 virtual ~CLoadGenSettingsViewDlg(); |
|
44 |
|
45 public: // From MEikListBoxObserver |
|
46 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
|
47 |
|
48 public: // From MAknTabObserver |
|
49 void TabChangedL(TInt aIndex); |
|
50 |
|
51 public: // From CAknDialog |
|
52 void ProcessCommandL(TInt aCommandId); |
|
53 |
|
54 protected: // From CEikDialog |
|
55 TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType); |
|
56 void PreLayoutDynInitL(); |
|
57 TBool OkToExitL(TInt aButtonId); |
|
58 |
|
59 private: // New methods |
|
60 void ShowSettingPageL(TBool aCalledFromMenu); |
|
61 void SetVisibilitiesOfSettingItemsL(); |
|
62 void UpdateListBoxL(); |
|
63 void AddSettingItemL(TInt aId, TInt aTitleResource, TInt aSettingPageResource, TInt aAssociatedResource, TInt aOrdinal); |
|
64 |
|
65 private: // Constructors |
|
66 CLoadGenSettingsViewDlg(TLoadGenSettings& aSettings); |
|
67 void ConstructL(); |
|
68 |
|
69 private: // Data |
|
70 CAknSettingItemArray* iSettingItemArray; |
|
71 CAknSettingStyleListBox* iListBox; |
|
72 CAknNavigationControlContainer* iNaviContainer; |
|
73 CAknNavigationDecorator* iDecoratedTabGroup; |
|
74 CAknTabGroup* iTabGroup; |
|
75 TLoadGenSettings& iSettings; |
|
76 }; |
|
77 |
|
78 |
|
79 #endif |
|
80 |
|
81 // End of File |
|
82 |
|