|
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_GENERICITUTUISTATEBASE_H |
|
20 #define C_GENERICITUTUISTATEBASE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <PtiDefs.h> |
|
24 |
|
25 #include "peninputgenericitutdata.h" |
|
26 #include "peninputgenericitutuimgrbase.h" |
|
27 |
|
28 class MItutLayoutContext; |
|
29 class CGenericItutDataMgr; |
|
30 class CFepUiBaseCtrl; |
|
31 |
|
32 class CGenericItutUiStateBase : public CBase |
|
33 { |
|
34 public: |
|
35 |
|
36 virtual ~CGenericItutUiStateBase(); |
|
37 |
|
38 virtual void OnExit() = 0; |
|
39 |
|
40 virtual void OnEntryL() = 0; |
|
41 |
|
42 // handle control event |
|
43 virtual TBool HandleCtrlEventL( TInt aEventType, CFepUiBaseCtrl* aCtrl, |
|
44 const TDesC& aEventData); |
|
45 |
|
46 virtual CGenericItutUiMgrBase::TUiState StateType() = 0; |
|
47 |
|
48 virtual TBool HandleKeyL(TInt aCmd, TInt aKey); |
|
49 |
|
50 virtual TInt HandleCommandL(TInt aCmd, TUint8* aData); |
|
51 |
|
52 protected: |
|
53 CGenericItutUiStateBase(CGenericItutUiMgrBase* aOwner); |
|
54 |
|
55 virtual void ConstructL(); |
|
56 |
|
57 protected: |
|
58 // not own |
|
59 CGenericItutUiMgrBase* iOwner; |
|
60 }; |
|
61 |
|
62 #endif //C_GENERICITUTUISTATEBASE_H |