brandingserver/Inc/tbsmdescarrayadapter.h
changeset 31 9dbc70490d9a
equal deleted inserted replaced
30:1fa9b890f29c 31:9dbc70490d9a
       
     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:   One value adapter for MDesCArray.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TBSMDESCARRAYADAPTER_H__
       
    20 #define TBSMDESCARRAYADAPTER_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <E32Std.h>
       
    24 #include <BaDesCa.h>
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29  * One value adapter for MDesCArray.
       
    30  *
       
    31  * @since 3.0
       
    32  */
       
    33 class TBSMDesCArrayAdapter : public MDesCArray
       
    34     {
       
    35     public: //Constructor & destructor
       
    36 
       
    37         /**
       
    38          * C++ constructor.
       
    39          * Takes the descriptor to adapt.
       
    40          */
       
    41         IMPORT_C TBSMDesCArrayAdapter( const TDesC& aDesc );
       
    42 
       
    43 
       
    44     public: //From MDesCArray
       
    45 
       
    46         IMPORT_C TInt MdcaCount() const;
       
    47         IMPORT_C TPtrC MdcaPoint( TInt aIndex ) const;
       
    48 
       
    49 
       
    50     private: //Data
       
    51 
       
    52         //OWN: Adapted descriptor
       
    53         TPtrC   iDesc;
       
    54     };
       
    55 
       
    56 
       
    57 #endif      //TBSMDESCARRAYADAPTER_H__
       
    58 
       
    59 //  End of File
       
    60 
       
    61 
       
    62 
       
    63