diff -r 000000000000 -r 2f259fa3e83a commonuisupport/uilaf/inc/lafsrv.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commonuisupport/uilaf/inc/lafsrv.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,65 @@ +// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __LAFSRV_H__ +#define __LAFSRV_H__ + +#include +#include + + +class LafServAppUiBase +/** Eikon server LAF support. + +@publishedPartner +@released */ + { +public: + /** Gets the number of pointer cursors supplied by the LAF. + + This can be zero for some devices. + + @return Number of pointer cursors */ + IMPORT_C static TInt NumberOfCursorsInSystemCursorList(); + /** Claims the pointer cursor list, enabling the Eikon server to change the system + pointer cursor. + + If this device has a global pointer cursor list, the function should claim + it by calling RWsSession::ClaimSystemPointerCursorList(); otherwise, it should + do nothing. + + @param aEnv Thread's control environment + @return System wide error code */ + IMPORT_C static TInt ClaimPointerCursorListIfNeeded(CCoeEnv& aEnv); + /** Releases the system pointer cursor list. + + If this device has a global pointer cursor list, the function should claim + it by calling RWsSession::FreeSystemPointerCursorList(); otherwise, it should + do nothing. + + @param aEnv Thread's control environment */ + IMPORT_C static void FreePointerCursorListIfNeeded(CCoeEnv& aEnv); + /** Constructs a specified pointer cursor. + + The function should return NULL for devices with no system pointer cursors. + + @param aCursorNumber Index of the cursor to construct + @param aSpriteMember On return, the sprite member added to the pointer cursor + @param aEnv Thread's control environment + @return Fully constructed pointer cursor */ + IMPORT_C static RWsPointerCursor* ConstructPointerCursorL(TInt aCursorNumber, TSpriteMember& aSpriteMember, CCoeEnv& aEnv); + }; + +#endif // __LAFSRV_H__