diff -r 000000000000 -r 5d03bc08d59c windowing/windowserver/nga/SERVER/WSOBJIX.H --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/nga/SERVER/WSOBJIX.H Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,100 @@ +// Copyright (c) 1999-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: +// Definition of object index class +// +// + +#ifndef __WSOBJIX_H__ +#define __WSOBJIX_H__ + +#include +#include + +class CWsObject; + +/** +A simple structure to hold a CWsObject and the associated handle. + +@internalComponent +@released +*/ +class TWsObject + { +public: + enum + { + ESlotMask=0x0000FFFF, //The handle on the client side uses these 16 bits to store the slot position + ECountMask=0x7FFF0000, //These 15 bits are used to keep a unique number (the slot reuse count) + ETypeMask=ESlotMask, //The handle on the server side uses these 16 bits to store the type of the object + ECountPosition=16, + ECountBits=15, + ECountInc=1< iObjectArray; + TInt iNewObjectCount; + }; + + +// +// inlines // +// + +// +// TWsObject +// +inline TWsObject::TWsObject(CWsObject* aObject,TInt aHandle) :iObject(aObject), iHandle(aHandle) {} +// +// CWsObjectIx +// +inline const CWsObject* CWsObjectIx::At(TInt aPos) const + {return iObjectArray[aPos].iObject;} +#endif