speechsrv_plat/ui_voice_recognition_api/inc/vuivoicerecogdefs.h
changeset 0 bf1d17376201
child 1 b13cd05eeb2f
equal deleted inserted replaced
-1:000000000000 0:bf1d17376201
       
     1 /*
       
     2 * Copyright (c) 2004-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:  Constant definitions 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VUIVOICERECOGDEFS_H
       
    20 #define VUIVOICERECOGDEFS_H
       
    21 
       
    22 const TInt KRecogFinal = 32;
       
    23 const TInt KRecogInterval = 1;
       
    24 const TInt KRecogIncrement = 1;
       
    25 const TInt KRecogDelay = 1;
       
    26 const TInt KKRecogInterval = 125000;
       
    27 
       
    28 const TInt KMaxPhoneNumberLength = 48;  // taken from Phonebook
       
    29 const TInt KMaxNameLength = 110;    // taken from Phonebook
       
    30 
       
    31 const TInt KSindMaxResults = 6;    // The number of voice tags needed for the N-Best List.
       
    32 
       
    33 const TInt KTimeoutMicroseconds = 4*1000000; // 4 seconds
       
    34 const TInt KErrorMessageTimeoutMicroseconds = 3*1000000; // 3 seconds
       
    35 const TInt KPlaybackTimeout = 45;    // ~2.5s depending on HW
       
    36 
       
    37 const TInt KVerificationCommands = 3;
       
    38 const TInt KVerificationResults = 3;
       
    39 const TInt KVerificationTries = 3;
       
    40 
       
    41 _LIT( KVoiceDialContext, "NAMEDIAL" );    // context for phonebook contact voice tags
       
    42 _LIT( KVoiceCommandContext, "COMMAND" );    // context for voice commands application tags
       
    43 _LIT( KVoiceVerificationContext, "VERIFICATION" );    // context for voice verification commands tags
       
    44 
       
    45 _LIT( KDirAndFile,"z:voiceui.mbm" );
       
    46 
       
    47 _LIT8( KVoiceUiMode, "DEVICELOCKMODE" );    // Startup mode for device lock functionality
       
    48 
       
    49 const TUid KVCommandAppUid = { 0x101F8555 };
       
    50 const TUid KVoiceUiUID = { 0x101F8543 };
       
    51 
       
    52 const TInt KProfileValue = 200;
       
    53 
       
    54 // Voice Ui error codes
       
    55 const TInt KErrInit                     = -1000;
       
    56 const TInt KErrNoMatch                  = -1001;
       
    57 const TInt KErrNoResults                = -1002;
       
    58 const TInt KErrCallInProgress           = -1003;
       
    59 const TInt KErrNoContacts               = -1004;
       
    60 const TInt KErrRecogFailed              = -1005;
       
    61 const TInt KErrNoSpeech                 = -1006;
       
    62 const TInt KErrTooEarly                 = -1007;
       
    63 const TInt KErrTooLong                  = -1008;
       
    64 const TInt KErrTooShort                 = -1009;
       
    65 const TInt KErrNoVerificationTrained    = -1009;
       
    66 
       
    67 // Verification modes
       
    68 enum TVuiVerificationMode
       
    69     {
       
    70     EAutomatic = 0,
       
    71     EManual,
       
    72     EVoice
       
    73     };
       
    74 
       
    75 // Voice Ui keypress codes
       
    76 enum TVuiKeypress
       
    77     {
       
    78     ENoKeypress = 1000,
       
    79     EShortKeypress,
       
    80     ELongKeypress,
       
    81     EEndCallKeypress,
       
    82     EUpKeypress,
       
    83     EDownKeypress,
       
    84     ESelectKeypress,
       
    85     EDirectSelectKeypress,
       
    86     EOpenKeypress,
       
    87     EMoreKeypress,
       
    88     EOptionsKeypress,
       
    89     EScrollKeypress,
       
    90     EDragKeypress
       
    91     };
       
    92 
       
    93 struct VTimerModel
       
    94     {
       
    95     TInt iFinalValue;
       
    96     TInt iHundreths;
       
    97     TInt iIncrement;
       
    98     TBool iRunning;
       
    99     };
       
   100     
       
   101 // Read capability: ReadDeviceData.
       
   102 _LIT_SECURITY_POLICY_C1( KVoiceUiReadPolicy, ECapabilityReadDeviceData );
       
   103     
       
   104 // Write capability: WriteDeviceData.
       
   105 _LIT_SECURITY_POLICY_C1( KVoiceUiWritePolicy, ECapabilityWriteDeviceData );
       
   106 
       
   107 #endif    // VUIVOICERECOGDEFS_H
       
   108 
       
   109 // End of File
       
   110