svgtviewer/SvgtViewerPlugin/SVGCodecSrc/SVGProxy.cpp
branchRCL_3
changeset 20 5fd161fa28b6
parent 0 632761c941a7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/svgtviewer/SvgtViewerPlugin/SVGCodecSrc/SVGProxy.cpp	Thu Sep 09 11:17:40 2010 +0300
@@ -0,0 +1,63 @@
+/*
+* 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;
+    }