persistentstorage/dbms/security/SC_Strings.h
author Chris Dudding <chris.dudding@nokia.com>
Tue, 13 Jul 2010 18:32:07 +0100
changeset 37 5ce4638b3d6d
parent 0 08ec8eefde2f
permissions -rw-r--r--
DEADHEAD Closing redundant branch: Bug 3168 (changeset 32: 0bacd7dbb9a9) is already incorporated in the 201025_05 bulk delivery (changeset 33: 5e4beccba4e9).

// Copyright (c) 2004-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:
// DBMS Security - Common strings - used only in DbSpConv sources
// 
//

#ifndef __SC_STRINGS_H__
#define __SC_STRINGS_H__

#include <e32std.h>

#ifdef __SC_STRINGS__
	#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var = {sizeof(val) - 1, val}
	#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var = {sizeof(L##val)/2 - 1, L##val}
	#define CONST_TTEXT(var, val) extern const TText var = val
#else
	#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var
	#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var
	#define CONST_TTEXT(var, val) extern const TText var
#endif

#ifdef _UNICODE
	#define CONST_LIT(var, val) CONST_LIT16(var, val)
#else
	#define CONST_LIT(var, val) CONST_LIT8(var, val)
#endif

CONST_LIT(KCrLf,			"\r\n");
CONST_LIT(KDbStr,			"[DATABASE]");
CONST_LIT(KTblStr,			"[TABLE]");
CONST_LIT(KBackupStr,		"[BACKUP]");
CONST_LIT(KNameStr,			"NAME");
CONST_LIT(KEqStr,			"=");
CONST_LIT(KSemiColonStr,	";");
 
CONST_LIT(KReadStr,			"READ");
CONST_LIT(KWriteStr,		"WRITE");
CONST_LIT(KSchemaStr,		"SCHEMA");
 
CONST_LIT(KCapabilityStr,	"CAPABILITY");
CONST_LIT(KSIDStr,			"SID");
CONST_LIT(KVIDStr,			"VID");

#endif//__SC_STRINGS_H__