author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 20:58:58 +0300 | |
branch | RCL_3 |
changeset 35 | 3321d3e205b6 |
parent 34 | 5456b4e8b3a8 |
permissions | -rw-r--r-- |
34 | 1 |
/* |
2 |
* Copyright (c) 2002-2006 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: View control adapter |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef _XNVIEWCONTROLADAPTER_H |
|
19 |
#define _XNVIEWCONTROLADAPTER_H |
|
20 |
||
21 |
// System includes |
|
22 |
#include <e32base.h> |
|
23 |
||
24 |
// User includes |
|
25 |
#include "xncontroladapter.h" |
|
26 |
#include "xnuistatelistener.h" |
|
27 |
||
28 |
// Forward declarations |
|
29 |
class CXnNodePluginIf; |
|
30 |
class CXnAppUiAdapter; |
|
31 |
||
32 |
// Class declaration |
|
33 |
/** |
|
34 |
* @ingroup group_xnlayoutengine |
|
35 |
* @lib xn3layoutengine.lib |
|
36 |
* @since S60 5.2 |
|
37 |
*/ |
|
38 |
NONSHARABLE_CLASS( CXnViewControlAdapter ) : public CXnControlAdapter, |
|
39 |
public MXnUiStateObserver |
|
40 |
{ |
|
35
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
41 |
|
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
42 |
public: |
34 | 43 |
// Constructors and destructor |
44 |
||
45 |
/** |
|
46 |
* 2 phase construction. |
|
47 |
*/ |
|
48 |
static CXnViewControlAdapter* NewL( CXnNodePluginIf& aNode ); |
|
49 |
||
50 |
/** |
|
51 |
* Destructor. |
|
52 |
*/ |
|
53 |
~CXnViewControlAdapter(); |
|
54 |
||
55 |
public: |
|
56 |
// From base classes |
|
57 |
||
58 |
/** |
|
59 |
* @see CCoeControl documentation |
|
60 |
*/ |
|
61 |
void MakeVisible( TBool aVisible ); |
|
62 |
||
63 |
/** |
|
64 |
* @see CCoeControl |
|
65 |
*/ |
|
66 |
void Draw( const TRect& aRect ) const; |
|
67 |
||
68 |
/** |
|
69 |
* @see CCoeControl |
|
70 |
*/ |
|
71 |
void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
72 |
||
73 |
public: |
|
74 |
// new functions |
|
75 |
||
76 |
/** |
|
77 |
* Resets pointer grabbing |
|
78 |
* |
|
79 |
* @since S60 5.2 |
|
80 |
*/ |
|
81 |
void ResetGrabbing(); |
|
82 |
||
83 |
private: |
|
84 |
// from MXnUiStateObserver |
|
85 |
||
86 |
/** |
|
87 |
* @see MXnUiStateObserver |
|
88 |
*/ |
|
89 |
void NotifyForegroundChanged( TForegroundStatus aStatus ); |
|
90 |
||
91 |
/** |
|
92 |
* @see MXnUiStateObserver |
|
93 |
*/ |
|
94 |
void NotifyLightStatusChanged( TBool aLightsOn ); |
|
95 |
||
96 |
/** |
|
97 |
* @see MXnUiStateObserver |
|
98 |
*/ |
|
99 |
void NotifyInCallStateChaged( TBool aInCall ); |
|
100 |
||
101 |
private: |
|
102 |
// constructors |
|
103 |
||
104 |
/** |
|
105 |
* C++ default constructor |
|
106 |
*/ |
|
35
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
107 |
CXnViewControlAdapter(); |
34 | 108 |
|
109 |
/** |
|
110 |
* 2nd phase constructor |
|
111 |
*/ |
|
112 |
void ConstructL( CXnNodePluginIf& aNode ); |
|
113 |
||
114 |
private: |
|
115 |
// data |
|
116 |
/** AppUi */ |
|
117 |
CXnAppUiAdapter& iAppUi; |
|
35
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
118 |
|
34 | 119 |
/** HS foreground status*/ |
120 |
MXnUiStateObserver::TForegroundStatus iForegroundStatus; |
|
35
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
121 |
|
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
122 |
//friend class CXnViewSwitcher; |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
123 |
}; |
34 | 124 |
|
125 |
#endif // _XNVIEWCONTROLADAPTER_H |
|
126 |
||
127 |
// End of File |