|
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: CTruiShortcutEditTextView class of TrainingUI |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_TRUISHORTCUTEDITTEXTVIEW_H |
|
20 #define C_TRUISHORTCUTEDITTEXTVIEW_H |
|
21 |
|
22 #include <aknview.h> |
|
23 |
|
24 class CTruiTextSettingPageContainer; |
|
25 |
|
26 // UID of view |
|
27 const TUid KTruiShortcutEditTextViewId = {4}; |
|
28 |
|
29 /** |
|
30 * CTruiShortcutEditTextView view class. |
|
31 * |
|
32 * @code |
|
33 * CTruiShortcutEditTextView* view = CTruiShortcutEditTextView::NewLC(); |
|
34 * AddViewL( view ); |
|
35 * CleanupStack::Pop(); |
|
36 * @endcode |
|
37 * |
|
38 */ |
|
39 class CTruiShortcutEditTextView : public CAknView |
|
40 { |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Two phase construction. |
|
45 * |
|
46 * @return Pointer to CTruiShortcutEditTextView's instance |
|
47 */ |
|
48 static CTruiShortcutEditTextView* NewL(); |
|
49 |
|
50 /** |
|
51 * Two phase construction. |
|
52 * |
|
53 * @return Pointer to CTruiShortcutEditTextView's instance |
|
54 */ |
|
55 static CTruiShortcutEditTextView* NewLC(); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CTruiShortcutEditTextView(); |
|
61 |
|
62 inline const TVwsViewId& StartViewId() |
|
63 { |
|
64 return iStartView; |
|
65 }; |
|
66 |
|
67 // from base class CAknView |
|
68 |
|
69 /** |
|
70 * From CAknView |
|
71 * Returns views id. |
|
72 * |
|
73 * @return id for this view. |
|
74 */ |
|
75 TUid Id() const; |
|
76 |
|
77 private: |
|
78 |
|
79 CTruiShortcutEditTextView(); |
|
80 |
|
81 void ConstructL(); |
|
82 |
|
83 /** |
|
84 * From CAknView |
|
85 * Called by the framework when view is activated. |
|
86 * |
|
87 * @param aPrevViewId This is not used now. |
|
88 * @param aCustomMessage This is not used now. |
|
89 * @param aCustomMessage This is not used now. |
|
90 */ |
|
91 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
92 TUid aCustomMessageId, |
|
93 const TDesC8& aCustomMessage ); |
|
94 |
|
95 /** |
|
96 * From CAknView |
|
97 * Called by the framework when view is deactivated. |
|
98 * |
|
99 */ |
|
100 void DoDeactivate(); |
|
101 |
|
102 private: // data |
|
103 |
|
104 /** |
|
105 * Pointer to the component control |
|
106 * own. |
|
107 */ |
|
108 CTruiTextSettingPageContainer* iContainer; |
|
109 |
|
110 TVwsViewId iStartView; |
|
111 }; |
|
112 |
|
113 #endif |