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