diff -r 000000000000 -r 7f85d04be362 upnpsharing/upnpcontentserver/src/upnpsharingrequest.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/upnpsharing/upnpcontentserver/src/upnpsharingrequest.cpp Thu Dec 17 08:52:00 2009 +0200 @@ -0,0 +1,96 @@ +/* +* Copyright (c) 2006-2007 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: CUpnpSharingRequest class implementation +* +*/ + + + + + + + +// INCLUDE FILES +#include "upnpsharingrequest.h" +#include "upnpcontentserverdefs.h" + +const TInt KDefaultItemCount = 2^32; //4294967296 + +using namespace UpnpContentServer; + +// ============================ MEMBER FUNCTIONS ============================= + +// -------------------------------------------------------------------------- +// CUpnpSharingRequest::CUpnpSharingRequest +// C++ default constructor can NOT contain any code, that +// might leave. +// -------------------------------------------------------------------------- +// + +CUpnpSharingRequest::CUpnpSharingRequest( TInt aKind ) + { + iKind = aKind; + iItemCount = KDefaultItemCount; + } + +// -------------------------------------------------------------------------- +// CUpnpSharingRequest::ConstructL +// Symbian 2nd phase constructor can leave. +// -------------------------------------------------------------------------- +// +void CUpnpSharingRequest::ConstructL( const RArray& aArr, + CDesCArray* aIdArray, + CDesCArray* aNameArray ) + { + for ( TInt i(0); i& aArr, + CDesCArray* aIdArray, + CDesCArray* aNameArray ) + { + CUpnpSharingRequest* self = new (ELeave) CUpnpSharingRequest( aKind ); + CleanupStack::PushL( self ); + self->ConstructL( aArr, + aIdArray, + aNameArray ); + CleanupStack::Pop( self ); + return self; + } + +// -------------------------------------------------------------------------- +// CUpnpSharingRequest::NewL +// Destructor +// -------------------------------------------------------------------------- +// +CUpnpSharingRequest::~CUpnpSharingRequest() + { + iSelections.Close(); + delete iObjectIds; + } + + +// End of File