equal
deleted
inserted
replaced
66 // C++ default destructor. |
66 // C++ default destructor. |
67 // ----------------------------------------------------------------------------- |
67 // ----------------------------------------------------------------------------- |
68 // |
68 // |
69 CXnFocusControl::~CXnFocusControl() |
69 CXnFocusControl::~CXnFocusControl() |
70 { |
70 { |
71 delete iMonitor; |
|
72 } |
71 } |
73 |
72 |
74 // ----------------------------------------------------------------------------- |
73 // ----------------------------------------------------------------------------- |
75 // CXnFocusControl::CXnFocusControl() |
74 // CXnFocusControl::CXnFocusControl() |
76 // C++ default constructor. |
75 // C++ default constructor. |
86 // 2nd phase constructor |
85 // 2nd phase constructor |
87 // ----------------------------------------------------------------------------- |
86 // ----------------------------------------------------------------------------- |
88 // |
87 // |
89 void CXnFocusControl::ConstructL() |
88 void CXnFocusControl::ConstructL() |
90 { |
89 { |
91 iMonitor = CXnInactivityMonitor::NewL( *this ); |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // CXnFocusControl::InactivityTimerExpired() |
|
96 // |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 void CXnFocusControl::InactivityTimerExpired() |
|
100 { |
|
101 MakeVisible( EFalse ); |
|
102 } |
90 } |
103 |
91 |
104 // ----------------------------------------------------------------------------- |
92 // ----------------------------------------------------------------------------- |
105 // CXnFocusControl::MakeVisible() |
93 // CXnFocusControl::MakeVisible() |
106 // |
94 // |
124 { |
112 { |
125 iVisible = aVisible; |
113 iVisible = aVisible; |
126 |
114 |
127 iRefused = EFalse; |
115 iRefused = EFalse; |
128 |
116 |
129 iMonitor->Stop(); |
|
130 |
|
131 CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() ); |
117 CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() ); |
132 |
118 |
133 if ( node ) |
119 if ( node ) |
134 { |
120 { |
135 CXnControlAdapter* control( node->Control() ); |
121 CXnControlAdapter* control( node->Control() ); |
154 else |
140 else |
155 { |
141 { |
156 iRefused = EFalse; |
142 iRefused = EFalse; |
157 |
143 |
158 iVisible = aVisible; |
144 iVisible = aVisible; |
159 |
|
160 iMonitor->Start(); |
|
161 } |
145 } |
162 } |
146 } |
163 } |
147 } |
164 |
148 |
165 // ----------------------------------------------------------------------------- |
149 // ----------------------------------------------------------------------------- |