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 SETTINGSVIEW_H |
|
19 #define SETTINGSVIEW_H |
|
20 |
|
21 #include <hbview.h> |
|
22 |
|
23 class HbDataForm; |
|
24 class HbDataFormModelItem; |
|
25 class EngineWrapper; |
|
26 class FileBrowserSettings; |
|
27 |
|
28 class SettingsView : public HbView |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 SettingsView(EngineWrapper &engineWrapper); |
|
34 virtual ~SettingsView(); |
|
35 |
|
36 void initDataForm(); |
|
37 signals: |
|
38 void finished(bool ok); |
|
39 |
|
40 public slots: |
|
41 // void displayModeChanged(); |
|
42 // void fileViewChanged(); |
|
43 // void subDirectoryInfoChanged(); |
|
44 // void associatedIconsChanged(); |
|
45 // void rememberFolderOnExitChanged(); |
|
46 // void rememberLastFolderChanged(); |
|
47 // void showToolbarChanged(); |
|
48 |
|
49 // void toggleChange(QModelIndex, QModelIndex); |
|
50 void accept(); |
|
51 void reject(); |
|
52 |
|
53 private: |
|
54 void createToolbar(); |
|
55 void constructMenu(); |
|
56 void loadSettings(const FileBrowserSettings &settings); |
|
57 void saveSettings(FileBrowserSettings &settings); |
|
58 |
|
59 private: |
|
60 EngineWrapper &mEngineWrapper; |
|
61 |
|
62 HbDataForm *mForm; |
|
63 HbDataFormModelItem *mDisplayModeItem; |
|
64 HbDataFormModelItem *mFileViewItem; |
|
65 HbDataFormModelItem *mShowDirectoryInfoItem; |
|
66 HbDataFormModelItem *mShowAssociatedIconsItem; |
|
67 HbDataFormModelItem *mRememberFolderOnExitItem; |
|
68 HbDataFormModelItem *mRememberLastFolderItem; |
|
69 HbDataFormModelItem *mShowToolbarItem; |
|
70 |
|
71 HbDataFormModelItem *mSupportNetDrivesItem; //"Support net drives" |
|
72 HbDataFormModelItem *mBypassPlatformSecurityItem; //"Bypass plat.security" |
|
73 HbDataFormModelItem *mUnlockFilesViaSBItem; //"Unlock files via SB" |
|
74 HbDataFormModelItem *mIgnoreProtectionAttributesItem; //"Ign. protection atts" |
|
75 HbDataFormModelItem *mNoROAttributeCopyFromZItem; //"No RO-att copy from Z:" |
|
76 |
|
77 }; |
|
78 |
|
79 #endif // SETTINGSVIEW_H |
|