diff -r dae66483be2b -r 562156073bab commands/focus/focus.cpp --- a/commands/focus/focus.cpp Thu Oct 28 21:02:49 2010 +0100 +++ b/commands/focus/focus.cpp Tue Nov 02 20:41:36 2010 +0000 @@ -11,7 +11,10 @@ // #include +#include +#ifdef FSHELL_APPARC_SUPPORT #include +#endif #include const TInt KPriorityNeverAtFront = -999; @@ -113,15 +116,19 @@ void CCmdFocus::PrintDetailsL() { TInt focusedWgId = iWsSession.GetFocusWindowGroup(); - CApaWindowGroupName* wgn = CApaWindowGroupName::NewLC(iWsSession, focusedWgId); +#ifdef FSHELL_APPARC_SUPPORT _LIT(KUnknown, "Un-named"); - TPtrC caption(wgn->Caption()); - if (caption.Length() == 0) + TPtrC caption(KUnknown); + CApaWindowGroupName* wgn = CApaWindowGroupName::NewLC(iWsSession, focusedWgId); + if (caption.Length()) { - caption.Set(KUnknown); + caption.Set(wgn->Caption()); } Printf(_L("Focused window group: %S\r\n"), &caption); CleanupStack::PopAndDestroy(wgn); +#else + Printf(_L("Focused window group id: %d\r\n"), focusedWgId); +#endif if (iVerbose) {