Hi,
I am using s60 3rd edn..
I need to get references to RWsSession, CWsScreenDevice, RWindowBase from
appUi/appView class.
Is there any functions to find them out?
Re: how to get references to current RWsSession, CWsScreenDevic
The RWsSession can be retrieved from CCoeEnv::Static()->WsSession()
The CWsScreenDevice can be retrieved from the above current RWsSession (RWsSession::ScreenDevice())
and
the RWindowBase can be retrieved from any CCoeControl by calling Window() or DrawableWindow().
Forum posts: 1232
The RWsSession can be retrieved from CCoeEnv::Static()->WsSession()
The CWsScreenDevice can be retrieved from the above current RWsSession (RWsSession::ScreenDevice())
and
the RWindowBase can be retrieved from any CCoeControl by calling Window() or DrawableWindow().
Forum posts: 137
Hi Mr. Alh,
Can you tell what is the problem here:
Tect aScreenRect=iAppView->Rect();
aScreenRect.Shrink(10,10);
iCamera->StartViewFinderDirectL(CCoeEnv::Static()->WsSession(),CCoeEnv::Static()->ScreenDevice(),*iAppView->DrawableWindow(), aScreenRect);
I get error as:---
'CCamera::StartViewFinderDirectL(RWsSession &, CWsScreenDevice &, RWindowBase &, TRect &, TRect &)' (non-static)
'CCamera::StartViewFinderDirectL(RWsSession &, CWsScreenDevice &, RWindowBase &, TRect &)' (non-static)
function call '[CCamera].StartViewFinderDirectL({lval} RWsSession, CWsScreenDevice *, {lval} RDrawableWindow, {lval} TRect)' does not match
Forum posts: 137
hi,
error solved using
*CCoeEnv::Static()->ScreenDevice()
in place of
CCoeEnv::Static()->ScreenDevice()
Thanx...........