|
1 /* |
|
2 * Copyright (c) 2007 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: Setting page for name base type (date/text)* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GSCAMDEFAULTNAMESETTINGPAGE_H |
|
21 #define GSCAMDEFAULTNAMESETTINGPAGE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknpopupsettingpage.h> |
|
25 #include "CamSettingsInternal.hrh" |
|
26 #include "Cam.hrh" |
|
27 |
|
28 /** |
|
29 * Setting page for name base type (date/text) |
|
30 * @since 2.8 |
|
31 */ |
|
32 class CGSCamDefaultNameSettingPage : public CAknPopupSettingPage |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 /** |
|
36 * C++ constructor. |
|
37 * Parameters are passed directly to CAknPopupSettingPage. |
|
38 * See CAknPopupSettingPage constructor for parameter details. |
|
39 * @since 2.8 |
|
40 * @param aNameBase current name base (in/out) |
|
41 * @param aMode current mode (video or still image) |
|
42 * @param aSettingTitleText title to display in page |
|
43 * @param aSettingNumber the setting number |
|
44 * @param aControlType the type of control |
|
45 * @param aEditorResourceId the id of the editor resource |
|
46 * @param aSettingPageResourceId the id of the page resource |
|
47 * @param aQueryValue reference to the query value |
|
48 */ |
|
49 CGSCamDefaultNameSettingPage( |
|
50 TDes& aNameBase, |
|
51 TCamCameraMode aMode, |
|
52 const TDesC* aSettingTitleText, |
|
53 TInt aSettingNumber, |
|
54 TInt aControlType, |
|
55 TInt aEditorResourceId, |
|
56 TInt aSettingPageResourceId, |
|
57 MAknQueryValue& aQueryValue, |
|
58 TBool aCamera ); |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 * @since 2.8 |
|
63 */ |
|
64 virtual ~CGSCamDefaultNameSettingPage(); |
|
65 |
|
66 protected: // Functions from base classes |
|
67 /* |
|
68 * From CAknSettingPage. |
|
69 * @since 2.8 |
|
70 * Check if the name base value is ok, so the user can |
|
71 * exit the setting page. |
|
72 * |
|
73 * @param aAccept ETrue if the user has indicated to accept the |
|
74 * setting page; EFalse otherwise |
|
75 * @return TBool a value indicating whether the setting page |
|
76 * should be dismissed |
|
77 */ |
|
78 TBool OkToExitL( TBool aAccept ); |
|
79 |
|
80 private: // New methods |
|
81 |
|
82 /* |
|
83 * Display the editor dialog |
|
84 * @since 3.0 |
|
85 * |
|
86 * @return TBool a value indicating whether the setting page |
|
87 * should be dismissed |
|
88 */ |
|
89 TBool ShowEditorDialogL(); |
|
90 |
|
91 private: // Data |
|
92 // Reference to the cuurent name base. |
|
93 TDes& iNameBase; |
|
94 // Used to store new name base so that it can be validated |
|
95 // before overwriting old value. |
|
96 TBuf<KMaxNameBaseLength> iTempNameBase; |
|
97 // The current mode of capture. |
|
98 TCamCameraMode iMode; |
|
99 TBool iCamera; |
|
100 }; |
|
101 |
|
102 #endif // GSCAMDEFAULTNAMESETTINGPAGE_H |