|
1 /*------------------------------------------------------------------ |
|
2 - |
|
3 * Software Name : UserEmulator |
|
4 * Version : v4.2.1309 |
|
5 * |
|
6 * Copyright (c) 2009 France Telecom. All rights reserved. |
|
7 * This software is distributed under the License |
|
8 * "Eclipse Public License - v 1.0" the text of which is available |
|
9 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 * |
|
11 * Initial Contributors: |
|
12 * France Telecom |
|
13 * |
|
14 * Contributors: |
|
15 *------------------------------------------------------------------ |
|
16 - |
|
17 * File Name: SettingsDialog.h |
|
18 * |
|
19 * Created: 13/08/2009 |
|
20 * Author(s): Marcell Kiss, Reshma Sandeep Das |
|
21 * |
|
22 * Description: |
|
23 * This class is used for handling settings dialog |
|
24 *------------------------------------------------------------------ |
|
25 - |
|
26 * |
|
27 */ |
|
28 |
|
29 #ifndef SETTINGS_DIALOG_H__ |
|
30 #define SETTINGS_DIALOG_H__ |
|
31 |
|
32 //System Includes |
|
33 #include <akndialog.h> |
|
34 |
|
35 //User Includes |
|
36 #include "Constants.h" |
|
37 |
|
38 //Forward declarations |
|
39 class CSettings; |
|
40 class CAknSettingItemList; |
|
41 |
|
42 /** |
|
43 * CSettingsDialog |
|
44 * Class used for handling configuration settings for User Emulator |
|
45 */ |
|
46 class CSettingsDialog : public CAknDialog |
|
47 { |
|
48 public: |
|
49 /** |
|
50 * Constructor |
|
51 * @param aSettings Reference to CSettings class |
|
52 */ |
|
53 CSettingsDialog(CSettings& aSettings); |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 CSettingsDialog::~CSettingsDialog(); |
|
58 |
|
59 private: // from CAknDialog |
|
60 void PreLayoutDynInitL(); |
|
61 void PostLayoutDynInitL(); |
|
62 TBool OkToExitL(TInt aButtonId); |
|
63 |
|
64 private: // from CCoeControl |
|
65 TInt CountComponentControls() const; |
|
66 CCoeControl* ComponentControl(TInt aIndex) const; |
|
67 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
68 |
|
69 private: |
|
70 /** |
|
71 * Function to validate the file name |
|
72 * @param aFilePath File path |
|
73 */ |
|
74 TInt CheckFileName(const TDesC& aFilePath); |
|
75 |
|
76 private: |
|
77 /** |
|
78 * Reference to the settings class |
|
79 */ |
|
80 CSettings& iSettings; |
|
81 /** |
|
82 * Reference to settings item list |
|
83 */ |
|
84 CAknSettingItemList* iSettingsList; |
|
85 /** |
|
86 * Reference to the settings class |
|
87 */ |
|
88 TBuf<KBuffer512> iPrevLogPath; |
|
89 }; |
|
90 |
|
91 #endif //SETTINGS_DIALOG_H__ |