44
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
#ifndef C_WESTERNSPLITITUTUIMGR_H
|
|
18 |
#define C_WESTERNSPLITITUTUIMGR_H
|
|
19 |
|
|
20 |
#include "peninputsplititutuimgrbase.h"
|
|
21 |
|
|
22 |
/**
|
|
23 |
* class CWesternSplitItutUiMgr.
|
|
24 |
*
|
|
25 |
* western split itut ui manager class.
|
|
26 |
*
|
|
27 |
* @lib peninputsplititut.lib
|
|
28 |
* @since S60 v5.0
|
|
29 |
*/
|
|
30 |
class CWesternSplitItutUiMgr : public CSplitItutUiMgrBase
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
/**
|
|
34 |
* Symbian constructor.
|
|
35 |
*
|
|
36 |
* @since S60 5.0
|
|
37 |
*
|
|
38 |
* @param aContext
|
|
39 |
* @param aDataMgr
|
|
40 |
* @param aUiManager
|
|
41 |
* @return Pointer to created CWesternSplitItutUiMgr object
|
|
42 |
*/
|
|
43 |
static CWesternSplitItutUiMgr* NewL(MSplitItutLayoutContext* aContext,
|
|
44 |
CSplitItutDataMgr* aDataMgr,
|
|
45 |
CSplitItutWindowManager* aUiManager);
|
|
46 |
|
|
47 |
/**
|
|
48 |
* standard c++ destructor.
|
|
49 |
*
|
|
50 |
* @since S60 5.0
|
|
51 |
* @return none
|
|
52 |
*/
|
|
53 |
~CWesternSplitItutUiMgr();
|
|
54 |
|
|
55 |
/**
|
|
56 |
* From CSplitItutUiMgrBase
|
|
57 |
* handle command
|
|
58 |
*
|
|
59 |
* @since S60 5.0
|
|
60 |
* @param aCmd
|
|
61 |
* @param aData
|
|
62 |
* @return TInt
|
|
63 |
*/
|
|
64 |
TInt HandleCommandL(TInt aCmd, TUint8* aData);
|
|
65 |
|
|
66 |
/**
|
|
67 |
* From CSplitItutUiMgrBase
|
|
68 |
* handle control event
|
|
69 |
*
|
|
70 |
* @since S60 5.0
|
|
71 |
* @param aEventType
|
|
72 |
* @param aCtrl
|
|
73 |
* @param aEventData
|
|
74 |
* @return TBool
|
|
75 |
*/
|
|
76 |
TBool HandleCtrlEventL( TInt aEventType,
|
|
77 |
CFepUiBaseCtrl* aCtrl,
|
|
78 |
const TDesC& aEventData);
|
|
79 |
|
|
80 |
/**
|
|
81 |
* From CSplitItutUiMgrBase
|
|
82 |
* Set current state
|
|
83 |
*
|
|
84 |
* @since S60 5.0
|
|
85 |
* @param aNewState
|
|
86 |
* @return TInt
|
|
87 |
*/
|
|
88 |
void SetCurrentStateL(TUiState aNewState);
|
|
89 |
|
|
90 |
/**
|
|
91 |
* From CSplitItutUiMgrBase
|
|
92 |
* Active ui
|
|
93 |
*
|
|
94 |
* @since S60 5.0
|
|
95 |
* @return None
|
|
96 |
*/
|
|
97 |
void ActivateUiL();
|
|
98 |
|
|
99 |
/**
|
|
100 |
* From CSplitItutUiMgrBase
|
|
101 |
* deactive ui
|
|
102 |
*
|
|
103 |
* @since S60 5.0
|
|
104 |
* @return None
|
|
105 |
*/
|
|
106 |
void DeactivateUI();
|
|
107 |
|
|
108 |
protected:
|
|
109 |
/**
|
|
110 |
* C++ constructor
|
|
111 |
*
|
|
112 |
* @since S60 5.0
|
|
113 |
* @param aContext
|
|
114 |
* @param aDataMgr
|
|
115 |
* @param aUiManager
|
|
116 |
* @return none
|
|
117 |
*/
|
|
118 |
CWesternSplitItutUiMgr( MSplitItutLayoutContext* aContext,
|
|
119 |
CSplitItutDataMgr* aDataMgr,
|
|
120 |
CSplitItutWindowManager* aUiManager);
|
|
121 |
|
|
122 |
/**
|
|
123 |
* standard c++ destructor.
|
|
124 |
*
|
|
125 |
* @since S60 5.0
|
|
126 |
* @return none
|
|
127 |
*/
|
|
128 |
void ConstructL();
|
|
129 |
|
|
130 |
private:
|
|
131 |
/**
|
|
132 |
* normal state.
|
|
133 |
* own
|
|
134 |
*/
|
|
135 |
CSplitItutUiStateBase* iNormalState;
|
|
136 |
|
|
137 |
/**
|
|
138 |
* Spell state.
|
|
139 |
* own
|
|
140 |
*/
|
|
141 |
CSplitItutUiStateBase* iSpellState;
|
|
142 |
};
|
|
143 |
|
|
144 |
#endif // C_WESTERNSPLITITUTUIMGR_H |