williamr@2: // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __LAFSRV_H__ williamr@2: #define __LAFSRV_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: williamr@2: class LafServAppUiBase williamr@2: /** Eikon server LAF support. williamr@2: williamr@2: @publishedPartner williamr@2: @released */ williamr@2: { williamr@2: public: williamr@2: /** Gets the number of pointer cursors supplied by the LAF. williamr@2: williamr@2: This can be zero for some devices. williamr@2: williamr@2: @return Number of pointer cursors */ williamr@2: IMPORT_C static TInt NumberOfCursorsInSystemCursorList(); williamr@2: /** Claims the pointer cursor list, enabling the Eikon server to change the system williamr@2: pointer cursor. williamr@2: williamr@2: If this device has a global pointer cursor list, the function should claim williamr@2: it by calling RWsSession::ClaimSystemPointerCursorList(); otherwise, it should williamr@2: do nothing. williamr@2: williamr@2: @param aEnv Thread's control environment williamr@2: @return System wide error code */ williamr@2: IMPORT_C static TInt ClaimPointerCursorListIfNeeded(CCoeEnv& aEnv); williamr@2: /** Releases the system pointer cursor list. williamr@2: williamr@2: If this device has a global pointer cursor list, the function should claim williamr@2: it by calling RWsSession::FreeSystemPointerCursorList(); otherwise, it should williamr@2: do nothing. williamr@2: williamr@2: @param aEnv Thread's control environment */ williamr@2: IMPORT_C static void FreePointerCursorListIfNeeded(CCoeEnv& aEnv); williamr@2: /** Constructs a specified pointer cursor. williamr@2: williamr@2: The function should return NULL for devices with no system pointer cursors. williamr@2: williamr@2: @param aCursorNumber Index of the cursor to construct williamr@2: @param aSpriteMember On return, the sprite member added to the pointer cursor williamr@2: @param aEnv Thread's control environment williamr@2: @return Fully constructed pointer cursor */ williamr@2: IMPORT_C static RWsPointerCursor* ConstructPointerCursorL(TInt aCursorNumber, TSpriteMember& aSpriteMember, CCoeEnv& aEnv); williamr@2: }; williamr@2: williamr@2: #endif // __LAFSRV_H__