|
1 /* |
|
2 * Copyright (c) 2002 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 class for profile name setting. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPROFILENAMESETTINGPAGE_H |
|
21 #define CPROFILENAMESETTINGPAGE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CProfileStruct.h" // KProfileMaxProfileNameLength |
|
25 #include <akntextsettingpage.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CProfileEngineHandler; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * Setting page class for profile name setting. |
|
33 * CProfileNameSettingPage extends CAknTextSettingPage in order to check |
|
34 * validity of user typed profile name. |
|
35 * Error note is shown if entered profile name already exists. |
|
36 * |
|
37 * @lib ProfileSettingsView.lib |
|
38 * @since 1.2 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CProfileNameSettingPage ) : public CAknTextSettingPage |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * C++ constructor. |
|
46 * @param aResourceID Setting page resource ID. |
|
47 * @param aText The new profile name will be stored here. |
|
48 * @param aTextSettingPageFlags Flags for the setting page. |
|
49 * @param aEngineHandler Profile Engine Handler. |
|
50 */ |
|
51 CProfileNameSettingPage( |
|
52 TInt aResourceID, |
|
53 TDes& aText, |
|
54 TInt aTextSettingPageFlags, |
|
55 CProfileEngineHandler& aEngineHandler ); |
|
56 |
|
57 private: // Functions from base classes |
|
58 |
|
59 /** |
|
60 * From CAknSettingPage |
|
61 */ |
|
62 TBool OkToExitL( TBool aAccept ); |
|
63 |
|
64 private: // Data |
|
65 |
|
66 /// Profile Engine Handler; |
|
67 CProfileEngineHandler& iEngineHandler; |
|
68 |
|
69 /// The original profile name |
|
70 TBuf<KProfileMaxProfileNameLength> iOriginalText; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // CPROFILENAMESETTINGPAGE_H |
|
75 |
|
76 // End of File |