⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interface.cpp

📁 ecom symbian os application development
💻 CPP
字号:
#include "interface.h"

EXPORT_C CCryptoInterface::CCryptoInterface()
	{}

EXPORT_C CCryptoInterface::~CCryptoInterface()
	{
	// Destroy any instance variables and then
	// inform the framework that this specific
	// instance of the interface has been destroyed.
	REComSession::DestroyedImplementation(iDtor_ID_Key);
	}

EXPORT_C CCryptoInterface* CCryptoInterface::NewL()
	{// Hardcoded to be software crypto by default
	
	const TUid KSWCryptoUid = { 0x10008EE5 };
	TAny* defaultCrypto = REComSession::CreateImplementationL(KSWCryptoUid, _FOFF(CCryptoInterface, iDtor_ID_Key));
	return (reinterpret_cast<CCryptoInterface*>(defaultCrypto));
	}

EXPORT_C CCryptoInterface* CCryptoInterface::NewL(const TDesC8& aCue)
{// Use the default ECOM resolver
	TEComResolverParams resolverParams;
	resolverParams.SetDataType(aCue);
	resolverParams.SetWildcardMatch(ETrue);
	
	TAny* cryptoInterface =	REComSession::CreateImplementationL(KCCryptoInterfaceUid,
	_FOFF(CCryptoInterface,iDtor_ID_Key),NULL,resolverParams);

	return (reinterpret_cast<CCryptoInterface*>(cryptoInterface));
}


EXPORT_C void CCryptoInterface::ListImplementationsL(RImplInfoPtrArray& aImplInfoArray)
	{
	REComSession::ListImplementationsL(KCCryptoInterfaceUid, aImplInfoArray);
	}

/** DLL Entry point */
GLDEF_C TInt E32Dll(TDllReason /*aReason*/)
	{
	return(KErrNone);
	}

⌨️ 快捷键说明

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