equal
deleted
inserted
replaced
18 |
18 |
19 #include <avkon.hrh> |
19 #include <avkon.hrh> |
20 #include <eikmenup.h> |
20 #include <eikmenup.h> |
21 #include <e32property.h> |
21 #include <e32property.h> |
22 #include <paintcursor.rsg> |
22 #include <paintcursor.rsg> |
|
23 #include <apgwgnam.h> |
23 |
24 |
24 #include "paintcursorapp.h" |
25 #include "paintcursorapp.h" |
25 #include "paintcursorappui.h" |
26 #include "paintcursorappui.h" |
26 #include "paintcursorapp.h" |
27 #include "paintcursorapp.h" |
27 #include "paintcursorappview.h" |
28 #include "paintcursorappview.h" |
129 break; |
130 break; |
130 } |
131 } |
131 case ECursorHide: |
132 case ECursorHide: |
132 { |
133 { |
133 iAppView->HideCursor(); |
134 iAppView->HideCursor(); |
|
135 EndTask(); |
134 break; |
136 break; |
135 } |
137 } |
136 case ECursorNotInitialized: |
138 case ECursorNotInitialized: |
137 { |
139 { |
138 EndTask(); |
140 EndTask(); |
157 |
159 |
158 // Request window server to end our application |
160 // Request window server to end our application |
159 task.EndTask(); |
161 task.EndTask(); |
160 } |
162 } |
161 |
163 |
|
164 void CPaintCursorAppUi::HandleForegroundEventL(TBool aForeground) |
|
165 { |
|
166 if(aForeground) |
|
167 { |
|
168 TInt wgId = iEikonEnv->RootWin().Identifier(); |
|
169 |
|
170 TApaTask self( iCoeEnv->WsSession() ); |
|
171 |
|
172 self.SetWgId( wgId ); |
|
173 self.SendToBackground(); |
|
174 |
|
175 RWsSession session = iEikonEnv->WsSession(); |
|
176 |
|
177 CApaWindowGroupName* wgName = CApaWindowGroupName::NewLC(session, wgId); |
|
178 |
|
179 wgName->SetHidden(ETrue); |
|
180 |
|
181 wgName->SetWindowGroupName(iEikonEnv->RootWin()); |
|
182 |
|
183 CleanupStack::PopAndDestroy(); // wgName |
|
184 } |
|
185 } |
|
186 |