mtpfws/mtpfw/datatypes/src/cmtptypedeleteserviceproplist.cpp
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17 @file
       
    18 @publishedPartner
       
    19 */
       
    20 #include <mtp/mtpdatatypeconstants.h>
       
    21 #include <mtp/tmtptypedatapair.h>
       
    22 #include <mtp/cmtptypedeleteserviceproplist.h>
       
    23 
       
    24 EXPORT_C CMTPTypeDeleteServicePropList* CMTPTypeDeleteServicePropList::NewL()
       
    25     {
       
    26     CMTPTypeDeleteServicePropList* self = CMTPTypeDeleteServicePropList::NewLC(); 
       
    27     CleanupStack::Pop(self);
       
    28     return self;  
       
    29     }
       
    30 
       
    31 EXPORT_C CMTPTypeDeleteServicePropList* CMTPTypeDeleteServicePropList::NewLC()
       
    32     {
       
    33     CMTPTypeDeleteServicePropList* self = new(ELeave) CMTPTypeDeleteServicePropList();
       
    34     CleanupStack::PushL(self);
       
    35     self->ConstructL();
       
    36     return self;
       
    37     }
       
    38 
       
    39 EXPORT_C CMTPTypeDeleteServicePropList::~CMTPTypeDeleteServicePropList()
       
    40     {
       
    41     
       
    42     }
       
    43 
       
    44 EXPORT_C void CMTPTypeDeleteServicePropList::AppendL(const TMTPTypeDataPair* aElement)
       
    45     {
       
    46     CMTPTypeList::AppendL( aElement );
       
    47     }
       
    48 
       
    49 
       
    50 EXPORT_C TMTPTypeDataPair& CMTPTypeDeleteServicePropList::ElementL(const TInt aIndex) const
       
    51     {
       
    52     return static_cast<TMTPTypeDataPair&>( CMTPTypeList::ElementL( aIndex ) );
       
    53     }
       
    54 
       
    55 CMTPTypeDeleteServicePropList::CMTPTypeDeleteServicePropList():
       
    56     CMTPTypeList( EMTPTypeDeleteServicePropListDataset , EMTPTypeDataPair )
       
    57     {
       
    58     
       
    59     }
       
    60 
       
    61 void CMTPTypeDeleteServicePropList::ConstructL()
       
    62     {
       
    63     InitListL();
       
    64     }