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