phonebookui/Phonebook2/inc/TPbk2UIExtensionRange.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 "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:  Range that is allocated for a plug-in.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TPBK2UIEXTENSIONRANGE_H
       
    20 #define TPBK2UIEXTENSIONRANGE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class TResourceReader;
       
    27 
       
    28 /**
       
    29  * Range that is allocated for a plug-in.
       
    30  */
       
    31 struct TPbk2UIExtensionRange
       
    32     {
       
    33     public: // Construction
       
    34         TPbk2UIExtensionRange();
       
    35 
       
    36         /**
       
    37          * Reads the range from resources.
       
    38          * @param aReader Resource reader for reading the range data.
       
    39          * @see PHONEBOOK2_EXTENSION_RANGE
       
    40          */
       
    41         void ReadFromResource(TResourceReader& aReader);
       
    42 
       
    43         /**
       
    44          * Returns ETrue if the id is included in this range.
       
    45          * @param aId Id to check.d
       
    46          * @return ETrue if the id is included in this range.
       
    47          */
       
    48         TBool IsIdIncluded(TInt aId) const;
       
    49         
       
    50     private: // Data
       
    51         /// Own: First Id in this range
       
    52         TInt iFirstId;
       
    53         /// Own: Last Id in this range
       
    54         TInt iLastId;
       
    55     };
       
    56     
       
    57 #endif // TPBK2UIEXTENSIONRANGE_H
       
    58 //End of file