equal
deleted
inserted
replaced
10 // Accenture - Initial contribution |
10 // Accenture - Initial contribution |
11 // |
11 // |
12 |
12 |
13 #include <fshell/common.mmh> |
13 #include <fshell/common.mmh> |
14 |
14 |
15 #if defined (FSHELL_PLATFORM_S60) && FSHELL_PLATFORM_S60 >= 5 |
15 #if defined(FSHELL_GUI_SUPPORT) && defined (FSHELL_PLATFORM_S60) && FSHELL_PLATFORM_S60 >= 5 |
|
16 #define AKNCAP_SUPPORT |
16 #include <AknCapServerClient.h> //for screen orientation change |
17 #include <AknCapServerClient.h> //for screen orientation change |
17 #endif |
18 #endif |
18 |
19 |
19 #include <W32STD.H> |
20 #include <W32STD.H> |
20 |
21 |
207 |
208 |
208 //S60 proprietary: toggle screen oritation by calling CAknCapServer::RotateScreenL |
209 //S60 proprietary: toggle screen oritation by calling CAknCapServer::RotateScreenL |
209 // |
210 // |
210 void CCmdScreenMode::DoRotateL() |
211 void CCmdScreenMode::DoRotateL() |
211 { |
212 { |
212 #if defined (FSHELL_PLATFORM_S60) && FSHELL_PLATFORM_S60 >= 5 |
213 #ifdef AKNCAP_SUPPORT |
213 TInt err; |
214 TInt err; |
214 RAknUiServer akSrv; |
215 RAknUiServer akSrv; |
215 err = akSrv.Connect(); |
216 err = akSrv.Connect(); |
216 LeaveIfErr(err, _L("Could not connect to AknCapServer")); |
217 LeaveIfErr(err, _L("Could not connect to AknCapServer")); |
217 |
218 |