imstutils/imconversationview/inc/imcvuiliterals.h
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  literal collection file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IMCVUILITERALS_H
       
    20 #define IMCVUILITERALS_H
       
    21 
       
    22 
       
    23 const TUid KUidconversationviewApp = {0x20012425};
       
    24 const TUid KUidIMCViewSoftNoteActivationId = {42};
       
    25 const TUid KUidConversationsView = {1};
       
    26 
       
    27 /// Constants
       
    28 _LIT8( KMimeJpeg, "image/jpeg" );
       
    29 _LIT8( KMimeGif, "Image/gif" );
       
    30 
       
    31 _LIT( KCVTab, "\t" );
       
    32 
       
    33 _LIT( KIMHTTPPREFIX, "http://");
       
    34 _LIT( KIMRTSP, "rtsp");
       
    35 
       
    36 _LIT(KCVColon,":");
       
    37 
       
    38 //Used In Chat View 
       
    39 //Length of "http"
       
    40 const TInt KHttpLength( 4 );
       
    41 
       
    42 //constants
       
    43 const TInt KCVProtocolUidTelepathy = 0x101FB3E7;//0x111fffff; // telepathy.
       
    44 
       
    45 const TInt32 KCVAppId = 1;
       
    46 
       
    47 _LIT( KGroupIdPart, "/" );
       
    48 
       
    49 const TInt KSystemOperationCode = -1;
       
    50 
       
    51 // "test character identity and accents, ignore case"
       
    52 const TInt KCollationLevel = 1;
       
    53 
       
    54 _LIT( KMsgId, "MessageID1");
       
    55 
       
    56 // CONSTANTS
       
    57 const TInt KMaxDateStringLength = 25; // max length of date message
       
    58 
       
    59 const TUint16 KVersionNum( 1 );
       
    60 
       
    61 // Panic definitions
       
    62 _LIT( KIMCVUIEnginePanicCategory, "IMCV Engine " );
       
    63 
       
    64 // Application UID
       
    65 const TUid KUidConversationView = {1};
       
    66 
       
    67 //maximum 100 character for text limit in editer
       
    68 #define KMAXTEXTLIMIT 100
       
    69 
       
    70 // maximum two line for message editor
       
    71 #define KMAXEDITORLINE 2
       
    72 
       
    73 #define KMAXUSERIDLENGTH 512
       
    74 
       
    75 #define KMAX_STATUS_LENGTH 1024
       
    76 
       
    77 
       
    78 const TUid KPhonebook2AppUid = { 0x101F4CCE };
       
    79 const TUid KUidIMServiceTabViewUid = {10001};
       
    80 
       
    81 const TInt KDefaultMsgLength = 400;
       
    82 
       
    83 // constants declaration
       
    84 const TInt KAMaxResourcePathLength  = 512;
       
    85 _LIT( KADefaultIconFile, "\\resource\\apps\\imcvuiapp.mif" );
       
    86 _LIT8(KAppIdForBrand,"xsp");
       
    87 _LIT8(KDefaultBrandIdForBrand,"xsp");
       
    88 
       
    89 const TInt KVIMPSTUISPSMaxPropertyLength = 512;
       
    90 
       
    91 const TUid KIMCVPropertyUid = { 0x101FB3E7 };
       
    92 const TUint KIMCVConnectedKey          = 0x00000001;
       
    93 /**
       
    94  * used enum's for exiting application from conversation view
       
    95  */
       
    96 enum TIMCVUiPropertyEvent
       
    97     {
       
    98     EIMCVUiEventNone      = 0,   
       
    99     EIMCVUiEventExitOnly,     
       
   100     EIMCVUiEventLogoutExit       
       
   101     };
       
   102 
       
   103 enum TIMCVConnectionState
       
   104    {
       
   105    EUnKnown,
       
   106    ELoggedOut,        
       
   107    ELoggedIn,
       
   108    EForcedLoggedOut
       
   109    };
       
   110 
       
   111 enum TIMCVOnlineStatus
       
   112     {
       
   113     EUnknown = -1,
       
   114     EOffline,
       
   115     EOnline,
       
   116     EInvisible,
       
   117     EAway,
       
   118     EBusy,
       
   119     EOnPhone,
       
   120     EDoNotDisturb,
       
   121     EPending,
       
   122     EBlock,
       
   123     EServiceOut,
       
   124     ECallForward
       
   125     };
       
   126 #endif      // IMCVUILITERALS_H
       
   127