19
|
1 |
/*
|
|
2 |
* Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: VAS database constants
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef NSSVASDBKONSTS_H
|
|
20 |
#define NSSVASDBKONSTS_H
|
|
21 |
|
|
22 |
// CONSTANTS
|
|
23 |
|
|
24 |
_LIT( KNameCol, "name" );
|
|
25 |
_LIT( KGlobalCol, "global" );
|
|
26 |
_LIT( KGrammarIdCol, "grammarid" );
|
|
27 |
_LIT( KLexiconIdCol, "lexiconid" );
|
|
28 |
_LIT( KModelBankIdCol, "modelbankid" );
|
|
29 |
_LIT( KContextIdCol, "contextid" );
|
|
30 |
|
|
31 |
_LIT( KRRDTextCol, "rrdtext" );
|
|
32 |
_LIT( KRRDIntCol, "rrdint" );
|
|
33 |
_LIT( KRRDPositionCol, "rrdposition" );
|
|
34 |
|
|
35 |
_LIT( KModelIdCol,"modelid" );
|
|
36 |
_LIT( KPronunciationIdCol, "pronunciationid" );
|
|
37 |
_LIT( KTrainTypeCol, "traintype" );
|
|
38 |
_LIT( KClientDataCol, "clientdata" );
|
|
39 |
_LIT( KRuleIdCol, "ruleid" );
|
|
40 |
|
|
41 |
_LIT( KTagIdCol, "tagid" );
|
|
42 |
|
|
43 |
const TInt KNssVasDbContextName =50;
|
|
44 |
const TInt KNssVasDbRRDText =64;
|
|
45 |
const TInt KNssVasDbSpeechItemName =128;
|
|
46 |
const TInt KNssVasDbTagName =128;
|
|
47 |
const TInt KNssStatementLength =300; // can be really long, but 300 can be enough
|
|
48 |
const TInt KNssMaxSQLLength =KNssVasDbContextName + KNssStatementLength;
|
|
49 |
const TInt KNssMaxNumLength =10;
|
|
50 |
const TInt KNssAppDynamicArrayGranularity=10;
|
|
51 |
|
|
52 |
// Vas Db specific error codes
|
|
53 |
const TInt KErrDbFailed =-1000;
|
|
54 |
const TInt KErrDbNotSet =-1001;
|
|
55 |
const TInt KErrDbNoData =-1002;
|
|
56 |
const TInt KErrDbNoSuchContext =-1003;
|
|
57 |
const TInt KErrDbNoSuchEvent =-1004;
|
|
58 |
const TInt KErrItemAlreadyExist =-1005;
|
|
59 |
const TInt KErrItemRefusedGeneral=-1006;
|
|
60 |
const TInt KErrTransferFailed =-1007;
|
|
61 |
const TInt KErrDbAlreadyOpen =-1008;
|
|
62 |
const TInt KErrDbBusy =-1009;
|
|
63 |
const TInt KErrAlreadyConnected =-1010;
|
|
64 |
|
|
65 |
#endif // NSSVASDBKONSTS_H
|
|
66 |
|
|
67 |
// End of file
|