ecom_table.cpp

来自「Symbian OS C++ for Mobile Phones v3 Exam」· C++ 代码 · 共 34 行

CPP
34
字号
// Copyright (c) 2004 - 2007, Symbian Software Ltd. All rights reserved.

#include <ecom/implementationproxy.h>

#include "smstransport.h"
#include "emailtransport.h"
#include "mmssendastransport.h"
#include "mmstransport.h"


static const TImplementationProxy ImplementationTable[] =
/** Which implementations of CTransportInterface are supported by this DLL. */
	{
	IMPLEMENTATION_PROXY_ENTRY(KSmsTransportUidValue, CSmsTransport::NewL),
	IMPLEMENTATION_PROXY_ENTRY(KEmailTransportUidValue, CEmailTransport::NewL),
	IMPLEMENTATION_PROXY_ENTRY(KMmsSendAsTransportUidValue, CMmsSendAsTransport::NewL),
	IMPLEMENTATION_PROXY_ENTRY(KMmsTransportUidValue, CMmsTransport::NewL)
	};

EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
/**
	This function must be exported from any ECOM plugin DLL.  It tells the
	caller which implementations, in this case transports, the DLL supports.

	@param	aTableCount		On return this contains the number of supported transports.
	@return					Table that lists implementation UIDs together with
							their factory functions.  This table is a static piece
							of data; ownership does not transfer to the caller.
 */
	{
	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
	return ImplementationTable;
	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?