javamanager/javacaptain/extensionplugins/javacertstore/tsrc.s60/src/101F5B72.rss
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:48:13 +0300
branchRCL_3
changeset 24 6c158198356e
parent 14 04becd199f91
permissions -rw-r--r--
Revision: v2.2.9 Kit: 201033

/*
* Copyright (c) 2009 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: 
*
*/
#include <ecom/RegistryInfoV2.rh>
#include <ct/InterfaceUID.hrh>

// True
#define CT_TRUE 1,0,0,0
// False
#define CT_FALSE 0,0,0,0

// A number between 0 and 255
#define CT_NUM8(x) x,0,0,0

// Attribute UIDs.
#define CT_SOFTWARE 0x7b, 0x52, 0x1f, 0x10
#define CT_REMOVABLE 0x7c, 0x52, 0x1f, 0x10
#define CT_ACCESS_CONTROLLED 0x7d, 0x52, 0x1f, 0x10
#define CT_MAX_TOKEN_COUNT 0x7e, 0x52, 0x1f, 0x10
#define CT_MIN_TOKEN_COUNT 0x7f, 0x52, 0x1f, 0x10

// Interface UIDs
#define CT_CERT_STORE 0x1B, 0x50, 0x1F, 0x10
#define CT_WRITEABLE_CERT_STORE 0xFB, 0x20, 0x20, 0x10

RESOURCE REGISTRY_INFO theInfo
	{
	resource_format_version = RESOURCE_FORMAT_VERSION_2;
	dll_uid = 0x101F5B72;
	interfaces = 
		{
		INTERFACE_INFO
			{
			interface_uid = CT_INTERFACE_UID;
			implementations = 
				{
				BINARY_IMPLEMENTATION_INFO
					{
					implementation_uid = 0x101F5B72;
					version_no = 1;
					display_name = "Test Smart Card Token for Java";
					default_data = { CT_CERT_STORE, CT_WRITEABLE_CERT_STORE };
					opaque_data = { CT_SOFTWARE, CT_FALSE,
									CT_REMOVABLE, CT_TRUE,
									CT_ACCESS_CONTROLLED, CT_FALSE,
									CT_MAX_TOKEN_COUNT, CT_NUM8(1),
									CT_MIN_TOKEN_COUNT, CT_NUM8(1) };
					rom_only = 0;	// This plugin can be loaded also from C:
					}
				};
			}
		};
	}