|
1 /* |
|
2 * Copyright (c) 2002-2005 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: drop-down list control |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_SPLITITUTUISTATEBASE_H |
|
20 #define C_SPLITITUTUISTATEBASE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ptidefs.h> |
|
24 |
|
25 #include "peninputsplititutdata.h" |
|
26 #include "peninputsplititutuimgrbase.h" |
|
27 |
|
28 class MSplitItutLayoutContext; |
|
29 class CSplitItutDataMgr; |
|
30 class CFepUiBaseCtrl; |
|
31 |
|
32 /** |
|
33 * class CSplitItutUiStateBase. |
|
34 * |
|
35 * split itut ui sate base. |
|
36 * |
|
37 * @lib peninputsplititut.lib |
|
38 * @since S60 v5.0 |
|
39 */ |
|
40 class CSplitItutUiStateBase : public CBase |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * standard c++ destructor. |
|
45 * |
|
46 * @since S60 5.0 |
|
47 * @return none |
|
48 */ |
|
49 virtual ~CSplitItutUiStateBase(); |
|
50 |
|
51 /** |
|
52 * exit current state. |
|
53 * |
|
54 * @since S60 5.0 |
|
55 * @return none |
|
56 */ |
|
57 virtual void OnExit() = 0; |
|
58 |
|
59 /** |
|
60 * entry current state. |
|
61 * |
|
62 * @since S60 5.0 |
|
63 * @return none |
|
64 */ |
|
65 virtual void OnEntryL() = 0; |
|
66 |
|
67 /** |
|
68 * handle control event. |
|
69 * |
|
70 * @since S60 5.0 |
|
71 * @param aEventType |
|
72 * @param aCtrl |
|
73 * @param aEventData |
|
74 * @return TBool |
|
75 */ |
|
76 virtual TBool HandleCtrlEventL( TInt aEventType, CFepUiBaseCtrl* aCtrl, |
|
77 const TDesC& aEventData); |
|
78 |
|
79 /** |
|
80 * get state type. |
|
81 * |
|
82 * @since S60 5.0 |
|
83 * @return state type |
|
84 */ |
|
85 virtual CSplitItutUiMgrBase::TUiState StateType() = 0; |
|
86 |
|
87 /** |
|
88 * handle key event |
|
89 * |
|
90 * @since S60 5.0 |
|
91 * @param aCmd |
|
92 * @param aKey |
|
93 * @return TBool |
|
94 */ |
|
95 virtual TBool HandleKeyL(TInt aCmd, TInt aKey); |
|
96 |
|
97 /** |
|
98 * handle command |
|
99 * |
|
100 * @since S60 5.0 |
|
101 * @param aCmd |
|
102 * @param aData |
|
103 * @return TInt |
|
104 */ |
|
105 virtual TInt HandleCommandL(TInt aCmd, TUint8* aData); |
|
106 |
|
107 protected: |
|
108 /** |
|
109 * C++ constructor |
|
110 * |
|
111 * @since S60 5.0 |
|
112 * @param aOwner |
|
113 * @return none |
|
114 */ |
|
115 CSplitItutUiStateBase(CSplitItutUiMgrBase* aOwner); |
|
116 |
|
117 /** |
|
118 * Symbian second-phase constructor |
|
119 * |
|
120 * @since S60 5.0 |
|
121 * @return none |
|
122 */ |
|
123 virtual void ConstructL(); |
|
124 |
|
125 protected: |
|
126 |
|
127 /** |
|
128 * ui manager |
|
129 * not own |
|
130 */ |
|
131 CSplitItutUiMgrBase* iOwner; |
|
132 }; |
|
133 |
|
134 #endif //C_SPLITITUTUISTATEBASE_H |