webengine/widgetregistry/Server/inc/UidAllocator.h
changeset 0 dd21522fd290
child 36 0ed94ceaa377
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Class which allocates random UIDs from a given range
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef UIDALLOCATOR_H
       
    20 #define UIDALLOCATOR_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include "WidgetRegistryConstants.h"
       
    24 
       
    25 /**
       
    26  * This class allows clients to allocate a UID from a given range.
       
    27  * @internalComponent
       
    28  */
       
    29 class TUidAllocator
       
    30     {
       
    31 public:
       
    32     /**
       
    33     * Allocates a single UID and returns it or leaves with KErrNotFound.
       
    34     */
       
    35     TInt AllocateL( const RUidArray& aUsedUids, TInt aDriveLetter );
       
    36 
       
    37     static TBool IsWidget( TUid aUid );
       
    38     };
       
    39 #endif
       
    40