upnpmediaserver/avobjects/src/upnpitemlist.cpp
author Sampo Huttunen <sampo.huttunen@nokia.com>
Wed, 24 Nov 2010 09:39:46 +0200
branchIOP_Improvements
changeset 45 a6c41ca11adf
parent 0 7f85d04be362
permissions -rw-r--r--
Updated the SIS package, there was some BC issue with the earlier version. Also updated the platform UID to S^3 version.

/** @file
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies  this distribution, and is available 
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  UPnP container class implementation
*
*/


// INCLUDE FILES
#include    <e32base.h>
#include	"upnpobject.h"
#include    "upnpitemlist.h"
    






// ============================ MEMBER FUNCTIONS ===============================

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CUpnpItemList::CUpnpItemList
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
CUpnpItemList::CUpnpItemList()
    {
    }

// -----------------------------------------------------------------------------
// CUpnpItemList::ConstructL
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CUpnpItemList::ConstructL( )
    {
    CUpnpObjectList::ConstructL();
    }
    
// -----------------------------------------------------------------------------
// CUpnpItemList::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
EXPORT_C CUpnpItemList* CUpnpItemList::NewL()
    {
    CUpnpItemList* self = NewLC();
    CleanupStack::Pop(self);

    return self;
    }
// -----------------------------------------------------------------------------
// CUpnpItemList::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
EXPORT_C CUpnpItemList* CUpnpItemList::NewLC()
    {
    CUpnpItemList* self = new( ELeave ) CUpnpItemList;

    CleanupStack::PushL( self );
    self->ConstructL(  );

    return self;
    }
      
// -----------------------------------------------------------------------------
// CUpnpItemList::~CUpnpItemList
// -----------------------------------------------------------------------------
//
CUpnpItemList::~CUpnpItemList()
    {
    }
// -----------------------------------------------------------------------------
// CUpnpItemList::AppendObjectL
// -----------------------------------------------------------------------------
//
EXPORT_C void CUpnpItemList::AppendObjectL( CUpnpObject& aNewObject )
    {
    // leave if not an item
    if(aNewObject.ObjectType() != EUPnPItem)
        {
        User::Leave(KErrArgument);
        }

    CUpnpObjectList::AppendObjectL(aNewObject);
    }
    
//  End of File