PECengine/PresenceManager2/SrcCommon/TPEngMDesCArrayAdapter.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2004 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:  One value adapter for MDesCArray.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TPENGMDESCARRAYADAPTER_H__
       
    19 #define TPENGMDESCARRAYADAPTER_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Std.h>
       
    23 #include <BaDesCa.h>
       
    24 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28  * One value adapter for MDesCArray.
       
    29  *
       
    30  * @since 3.0
       
    31  */
       
    32 NONSHARABLE_CLASS( TPEngMDesCArrayAdapter ): public MDesCArray
       
    33     {
       
    34 public: //Constructor & destructor
       
    35 
       
    36     /**
       
    37      * C++ constructor.
       
    38      * Takes the descriptor to adapt.
       
    39      */
       
    40     TPEngMDesCArrayAdapter( const TDesC& aDesc );
       
    41 
       
    42 
       
    43 public: //From MDesCArray
       
    44 
       
    45     TInt MdcaCount() const;
       
    46     TPtrC MdcaPoint( TInt aIndex ) const;
       
    47 
       
    48 
       
    49 private: //Data
       
    50 
       
    51     //OWN: Adapted descriptor
       
    52     TPtrC   iDesc;
       
    53     };
       
    54 
       
    55 
       
    56 #endif      //TPENGMDESCARRAYADAPTER_H__
       
    57 
       
    58 //  End of File
       
    59 
       
    60 
       
    61 
       
    62