PECengine/PresenceManager2/SrcCommon/TPEngCntLstMDesCArrayAdapter.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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:  Contact list to MDesCArray adapter.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TPENGCNTLSTMDESCARRAYADAPTER_H__
       
    19 #define TPENGCNTLSTMDESCARRAYADAPTER_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Std.h>
       
    23 #include <BaDesCa.h>
       
    24 #include <MPEngContactList2.h>
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29  * Contact list to MDesCArray adapter.
       
    30  *
       
    31  * @since 3.0
       
    32  */
       
    33 NONSHARABLE_CLASS( TPEngCntLstMDesCArrayAdapter ): public MDesCArray
       
    34     {
       
    35 public: //Constructor & destructor
       
    36 
       
    37     /**
       
    38      * C++ constructor.
       
    39      * Takes the contact list and view type to adapt.
       
    40      */
       
    41     TPEngCntLstMDesCArrayAdapter( const MPEngContactList2& aList,
       
    42     TPEngContactListView aContactListView );
       
    43 
       
    44 
       
    45 public: //From MDesCArray
       
    46 
       
    47     TInt MdcaCount() const;
       
    48     TPtrC MdcaPoint( TInt aIndex ) const;
       
    49 
       
    50 
       
    51 private: //Data
       
    52 
       
    53     //OWN: Adapted contact list
       
    54     const MPEngContactList2&    iList;
       
    55 
       
    56     //OWN: Adapted contact list view
       
    57     TPEngContactListView    iContactListView;
       
    58     };
       
    59 
       
    60 
       
    61 #endif      //TPENGCNTLSTMDESCARRAYADAPTER_H__
       
    62 //  End of File
       
    63 
       
    64