svgtviewer/SvgtViewerPlugin/SVGCodecSrc/SVGProxy.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 09 Sep 2010 11:17:40 +0300
branchRCL_3
changeset 20 5fd161fa28b6
parent 0 632761c941a7
permissions -rw-r--r--
Revision: 201019 Kit: 201035

/*
* Copyright (c) 2005 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:  This file implements the SVGT proxy for resolving plugins
*
*/


#include "SVGProxy.h"
#include <ecom.h>
#include <implementationproxy.h>
#include "SVGImageCodecUIDs.hrh"
#include "SVGConvert.h"

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

// -----------------------------------------------------------------------------
// CSvgDecodeConstruct::NewL
// Static constructor. Returns the pointer to the CSvgDecodeConstruct
// -----------------------------------------------------------------------------
//
CSvgDecodeConstruct* CSvgDecodeConstruct::NewL()
    {
    CSvgDecodeConstruct* self = new (ELeave) CSvgDecodeConstruct;
    CleanupStack::PushL(self);
    self->ConstructL();
    CleanupStack::Pop(self);
    return self;
    }

// -----------------------------------------------------------------------------
// CSvgDecodeConstruct::NewPluginL
// Creates a new concrete CImageDecoderPlugin object.
// This is a pure virtual function that each derived class must implement.
// -----------------------------------------------------------------------------
//
CImageDecoderPlugin* CSvgDecodeConstruct::NewPluginL() const
    {
    return CSvgDecoder::NewL();
    }

// Exported proxy for instantiation method resolution
// Define the Implementation UIDs for SVG decoder
const TImplementationProxy ImplementationTable[] =
    {
    IMPLEMENTATION_PROXY_ENTRY(KSVGDecoderImplementationUidValue, CSvgDecodeConstruct::NewL)
    };

EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    {
    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    return ImplementationTable;
    }