upnpavcontroller/upnpavcontrollerhelper/src/upnpitemresolverfactory.cpp
author Sampo Huttunen <sampo.huttunen@nokia.com>
Wed, 24 Nov 2010 09:39:46 +0200
branchIOP_Improvements
changeset 45 a6c41ca11adf
parent 38 5360b7ddc251
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.

/*
* Copyright (c) 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:      Tool for resolving local or remote items - factory
*
*/






// INCLUDE FILES
// dlnasrv / avcontroller helper api
#include "upnpitemresolverfactory.h"

// dlnasrv / avcontroller helper internal
#include "upnpremoteitemresolver.h"
#include "upnplocalitemresolver.h"
#include "upnpdownloaditemresolver.h"

// CONSTANTS

// METHODS

// --------------------------------------------------------------------------
// MUPnPItemResolver::NewRemoteItemResolverL
// factory for implementation
//---------------------------------------------------------------------------
EXPORT_C MUPnPItemResolver* UPnPItemResolverFactory::NewRemoteItemResolverL(
    const TDesC8& aItemId,
    MUPnPAVBrowsingSession& aHostSession,
    MUPnPResourceSelector& aSelector,
    const TDesC8& aBrowseFilter,
    TInt /*aOptimisationFlags*/ )
    {
    return CUPnPRemoteItemResolver::NewL(
        aItemId, aHostSession, aSelector, aBrowseFilter );
    }

// --------------------------------------------------------------------------
// MUPnPItemResolver::NewRemoteItemResolverL
// factory for implementation
//---------------------------------------------------------------------------
EXPORT_C MUPnPItemResolver* UPnPItemResolverFactory::NewLocalItemResolverL(
    const TDesC& aFilePath,
    MUPnPAVController& aAvController,
    MUPnPResourceSelector& aSelector,
    TInt aOptimisationFlags )
    {
    return CUPnPLocalItemResolver::NewL(
        aFilePath, aAvController, aSelector, aOptimisationFlags );
    }

// --------------------------------------------------------------------------
// MUPnPItemResolver::NewDownloadItemResolverL
// factory for implementation
//---------------------------------------------------------------------------
EXPORT_C MUPnPItemResolver* UPnPItemResolverFactory::NewDownloadItemResolverL(
    const TDesC8& aItemId,
    MUPnPAVController& aAvController,
    MUPnPAVBrowsingSession& aHostSession,
    MUPnPResourceSelector& aSelector,
    const TDesC8& aBrowseFilter,
    TInt /*aOptimisationFlags*/ )
    {
    return CUPnPDownloadItemResolver::NewL(
        aItemId, aAvController, aHostSession, aSelector, aBrowseFilter );
    }