sl@0: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // DBMS Security - Common strings - used only in DbSpConv sources sl@0: // sl@0: // sl@0: sl@0: #ifndef __SC_STRINGS_H__ sl@0: #define __SC_STRINGS_H__ sl@0: sl@0: #include sl@0: sl@0: #ifdef __SC_STRINGS__ sl@0: #define CONST_LIT8(var, val) extern const TLitC8 var = {sizeof(val) - 1, val} sl@0: #define CONST_LIT16(var, val) extern const TLitC16 var = {sizeof(L##val)/2 - 1, L##val} sl@0: #define CONST_TTEXT(var, val) extern const TText var = val sl@0: #else sl@0: #define CONST_LIT8(var, val) extern const TLitC8 var sl@0: #define CONST_LIT16(var, val) extern const TLitC16 var sl@0: #define CONST_TTEXT(var, val) extern const TText var sl@0: #endif sl@0: sl@0: #ifdef _UNICODE sl@0: #define CONST_LIT(var, val) CONST_LIT16(var, val) sl@0: #else sl@0: #define CONST_LIT(var, val) CONST_LIT8(var, val) sl@0: #endif sl@0: sl@0: CONST_LIT(KCrLf, "\r\n"); sl@0: CONST_LIT(KDbStr, "[DATABASE]"); sl@0: CONST_LIT(KTblStr, "[TABLE]"); sl@0: CONST_LIT(KBackupStr, "[BACKUP]"); sl@0: CONST_LIT(KNameStr, "NAME"); sl@0: CONST_LIT(KEqStr, "="); sl@0: CONST_LIT(KSemiColonStr, ";"); sl@0: sl@0: CONST_LIT(KReadStr, "READ"); sl@0: CONST_LIT(KWriteStr, "WRITE"); sl@0: CONST_LIT(KSchemaStr, "SCHEMA"); sl@0: sl@0: CONST_LIT(KCapabilityStr, "CAPABILITY"); sl@0: CONST_LIT(KSIDStr, "SID"); sl@0: CONST_LIT(KVIDStr, "VID"); sl@0: sl@0: #endif//__SC_STRINGS_H__