sl@0
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// DBMS Security - Common strings - used only in DbSpConv sources
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef __SC_STRINGS_H__
|
sl@0
|
19 |
#define __SC_STRINGS_H__
|
sl@0
|
20 |
|
sl@0
|
21 |
#include <e32std.h>
|
sl@0
|
22 |
|
sl@0
|
23 |
#ifdef __SC_STRINGS__
|
sl@0
|
24 |
#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var = {sizeof(val) - 1, val}
|
sl@0
|
25 |
#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var = {sizeof(L##val)/2 - 1, L##val}
|
sl@0
|
26 |
#define CONST_TTEXT(var, val) extern const TText var = val
|
sl@0
|
27 |
#else
|
sl@0
|
28 |
#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var
|
sl@0
|
29 |
#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var
|
sl@0
|
30 |
#define CONST_TTEXT(var, val) extern const TText var
|
sl@0
|
31 |
#endif
|
sl@0
|
32 |
|
sl@0
|
33 |
#ifdef _UNICODE
|
sl@0
|
34 |
#define CONST_LIT(var, val) CONST_LIT16(var, val)
|
sl@0
|
35 |
#else
|
sl@0
|
36 |
#define CONST_LIT(var, val) CONST_LIT8(var, val)
|
sl@0
|
37 |
#endif
|
sl@0
|
38 |
|
sl@0
|
39 |
CONST_LIT(KCrLf, "\r\n");
|
sl@0
|
40 |
CONST_LIT(KDbStr, "[DATABASE]");
|
sl@0
|
41 |
CONST_LIT(KTblStr, "[TABLE]");
|
sl@0
|
42 |
CONST_LIT(KBackupStr, "[BACKUP]");
|
sl@0
|
43 |
CONST_LIT(KNameStr, "NAME");
|
sl@0
|
44 |
CONST_LIT(KEqStr, "=");
|
sl@0
|
45 |
CONST_LIT(KSemiColonStr, ";");
|
sl@0
|
46 |
|
sl@0
|
47 |
CONST_LIT(KReadStr, "READ");
|
sl@0
|
48 |
CONST_LIT(KWriteStr, "WRITE");
|
sl@0
|
49 |
CONST_LIT(KSchemaStr, "SCHEMA");
|
sl@0
|
50 |
|
sl@0
|
51 |
CONST_LIT(KCapabilityStr, "CAPABILITY");
|
sl@0
|
52 |
CONST_LIT(KSIDStr, "SID");
|
sl@0
|
53 |
CONST_LIT(KVIDStr, "VID");
|
sl@0
|
54 |
|
sl@0
|
55 |
#endif//__SC_STRINGS_H__
|