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 - Common strings
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef __D32STRINGS_H__
|
sl@0
|
19 |
#define __D32STRINGS_H__
|
sl@0
|
20 |
|
sl@0
|
21 |
#ifdef __D32STRINGS__
|
sl@0
|
22 |
#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var = {sizeof(val) - 1, val}
|
sl@0
|
23 |
#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var = {sizeof(L##val)/2 - 1, L##val}
|
sl@0
|
24 |
#define CONST_TTEXT(var, val) extern const TText var = val
|
sl@0
|
25 |
#else
|
sl@0
|
26 |
#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var
|
sl@0
|
27 |
#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var
|
sl@0
|
28 |
#define CONST_TTEXT(var, val) extern const TText var
|
sl@0
|
29 |
#endif
|
sl@0
|
30 |
|
sl@0
|
31 |
#ifdef _UNICODE
|
sl@0
|
32 |
#define CONST_LIT(var, val) CONST_LIT16(var, val)
|
sl@0
|
33 |
#else
|
sl@0
|
34 |
#define CONST_LIT(var, val) CONST_LIT8(var, val)
|
sl@0
|
35 |
#endif
|
sl@0
|
36 |
|
sl@0
|
37 |
CONST_LIT(KSecure, "SECURE");
|
sl@0
|
38 |
CONST_LIT(KDbsPrefix, "DBS");
|
sl@0
|
39 |
CONST_LIT(KSecurityPolicyDir,"POLICY\\");
|
sl@0
|
40 |
CONST_LIT(KPolicyFileExtMask,"*.SPD");
|
sl@0
|
41 |
|
sl@0
|
42 |
#endif//__D32STRINGS_H__
|
sl@0
|
43 |
|
sl@0
|
44 |
|