uiservicetab/inc/tvimpstconsts.h
branchRCL_3
changeset 23 9a48e301e94b
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 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:  constant for VIMST ui service tab
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TVIMPSTCONSTS_H
       
    20 #define TVIMPSTCONSTS_H
       
    21 
       
    22 //includes 
       
    23 #include "tvimpstenums.h"
       
    24 //TODO:: uncomment this once the phonebook exprots this header file.
       
    25 //#include <extensionmanager.hrh>
       
    26 
       
    27 //constants
       
    28 
       
    29 _LIT( KResourceDir, "\\resource\\" );
       
    30 _LIT( KResourceFileName, "vimpstuires.rsc" );
       
    31 _LIT( KDefaultIconFile, "\\resource\\apps\\vimpstui.mif" );
       
    32 
       
    33 const TInt KMaxResourcePathLength  = 512;
       
    34 
       
    35 //used to show info not for the fetaures which are not supported yet
       
    36 _LIT(KNotSupportedMessage,"Selected feature not yet supported !");
       
    37 
       
    38 _LIT(KColon,":");	// TODO: get this service name from service tables
       
    39 
       
    40 const TInt KProtocolUidTelepathy = 0x101FB3E7;//0x111fffff; // telepathy.
       
    41 
       
    42 const TInt KProtocolUid12 = 0x10282EE9 ;    // imps 1.2 new uid
       
    43 
       
    44 const TInt KProtocolUid13 = 0x10282EEA  ;    // imps 1.3 id
       
    45 
       
    46 const TInt32 KAppId = 11;
       
    47 
       
    48 const TInt KFriendsListMaxIdentificationLength = 100;
       
    49 const TInt KUsernameMaxLength = 100;
       
    50 const TInt KPasswordMaxLength = 50;
       
    51 const TInt KOwnDataIndex = 0;
       
    52 const TInt KStatusMsgMaxLength = 75;
       
    53 
       
    54 _LIT(KUserId ,"testui123@gmail.com") ;
       
    55 _LIT(KPassword,"test_ui123") ;
       
    56 _LIT(KAddress,"talk.google.com") ;
       
    57 
       
    58  
       
    59 _LIT(Kview1,"View1");
       
    60 
       
    61 // xmpp use signle default list
       
    62 _LIT(KFriendList ,"buddyList");
       
    63 _LIT(KIMContactListId,"buddyList");
       
    64 _LIT(KVPContactListId,"VPContacts");
       
    65 
       
    66 //Used for iStores->Find
       
    67 _LIT(KPbkDefaultContactDb,"contacts.cdb"); 
       
    68 
       
    69 //Used for iStores->Find
       
    70 _LIT(KVIMDefaultContactDb,"vimpststore.cdb");
       
    71 
       
    72 
       
    73 // used for constructing the DB path
       
    74 _LIT( KCntDbURIDomain, "cntdb://" ); 
       
    75 _LIT( KCntDbPrivateDrive, "c:" ); 
       
    76 
       
    77 _LIT( KPhoneBookDbURI, "cntdb://c:contacts.cdb");
       
    78 
       
    79 //used for constructing DB name.
       
    80 _LIT(KUnderscore, "_");
       
    81 
       
    82 const TInt KPropertyMaxLength = 512;
       
    83 const TInt KMaxSearchLimit = 10;
       
    84 const TInt KTelInternetFieldLength = 512;
       
    85 const TInt KLisBoxItem = 160;
       
    86 const TUint KIconIdMaxLength( 128 );
       
    87 _LIT( KListItemFormatRegistered, "%d\t%S\t\t%d" );
       
    88 _LIT( KListItemFormatBlockList, "%d\t%S" );
       
    89 _LIT( KListItemFormatSelectContact, "%d\t%S" );
       
    90 
       
    91 _LIT(KImppPresencePrefix, "impp:");
       
    92 _LIT(KVoipPresencePrefix, "voip:");  
       
    93 
       
    94  
       
    95 const TInt KMaxLengthOfAddress = 512; 
       
    96 
       
    97 // CONSTANTS
       
    98 const TInt KNumberGranularity( 12 );
       
    99 
       
   100 const TInt KMediumAmountOfContacts = 64;
       
   101 const TInt KLargeAmountOfContacts = 200;
       
   102 
       
   103 _LIT(KTab, "\t");
       
   104 _LIT(KSpace, " ");
       
   105 
       
   106 
       
   107 // CONSTANTS
       
   108 const TInt KCColumn = 2;
       
   109 //const TInt KPrimaryFont = 0;
       
   110 const TInt KSecondaryFont = 1;
       
   111 
       
   112 // A Column Icons
       
   113 _LIT( KContactOfflineIconA,     "0\t" );
       
   114 _LIT( KContactOnlineIconA,      "1\t" );
       
   115 _LIT( KListAwayIcon,        "2\t" );
       
   116 _LIT( KListBusyIcon,        "3\t" );
       
   117 _LIT( KListInvisibleIcon,        "4\t" );
       
   118 _LIT( KEmptyIconA,              "\t" );
       
   119 _LIT( KEmptyIconC,              "\t" );
       
   120 _LIT( KContactOpenConvIcon,   "5\t" );
       
   121 _LIT( KContactNewMsgIcon,   "6\t" );
       
   122 _LIT( KDefaultAvatar,   "7\t" );
       
   123 _LIT( KLocalPendingRequest,   "8\t" );
       
   124 _LIT( KRemotePendingRequest,   "9\t" );
       
   125 _LIT( KLocalPendingRequestOffline,   "10\t" );
       
   126 _LIT( KRemotePendingRequestOffline,   "11\t" );
       
   127 _LIT( KFrndOnMobileIcon,   "12\t" );
       
   128 _LIT( KFrndBlockedIcon,   "13\t" );
       
   129 _LIT( KCallForward,				"14\t" );
       
   130 
       
   131 const TInt KDataArraySize = 5;
       
   132 
       
   133 
       
   134 const TInt KVIMPSTUISPSMaxPropertyLength = 512;
       
   135 
       
   136 const TInt KVIMPSTTabbedViewIdBase = 10000;
       
   137 
       
   138 const TInt KVIMPSTSearchViewIdBase = 10101;
       
   139 
       
   140 const TInt KVIMPSTBlockedViewIdBase = 10150;
       
   141 // own status
       
   142 // For own status
       
   143 const TInt KAmountOfOwnStatusStates = 3;
       
   144 const TInt KOnlineIconIndex = 0;
       
   145 //Tab format for listbox item with an icon
       
   146 _LIT( KTabFormat, "%d\t");
       
   147 const TInt KTabFormatLenght = 4;
       
   148 
       
   149 const TInt KStatusTextLength = 40;
       
   150 
       
   151 const TInt KMaxStatusMessageCount = 4;
       
   152 
       
   153 const TInt KStatusMessageHeaderLength = 3; // length of status message header.
       
   154 const TInt KSearchStringLength = 50;
       
   155 
       
   156 const TInt KArrayGranularity = 500; 
       
   157 // KStatusMessageHeaderLength must be used as amount of characters for format.
       
   158 _LIT( KStatusMessageHeaderFormat, "%3d" );
       
   159 _LIT( KStatusMessageHeaderLengthFormat, "%d" ); // This is length of header.
       
   160 
       
   161 // StatusText attribute value tags
       
   162 _LIT8( KStatusTextfield, "StatusText");
       
   163 
       
   164 _LIT( KAvailable, "available");
       
   165 _LIT( KBusy, "dnd");
       
   166 _LIT( KAway, "away");
       
   167 _LIT( KXa, "xa");
       
   168 _LIT( KHidden, "hidden");
       
   169 _LIT( KOffline, "offline");
       
   170 _LIT (KNetworkError, "Waiting for Connection");
       
   171 _LIT(KFileName, "c:\\FILENAME.CPP");
       
   172 
       
   173 
       
   174 // CONSTANTS
       
   175 #define  KJPegType _L("image/jpeg")
       
   176 #define  KGifType  _L("image/gif")
       
   177 #define  KPngType  _L("image/png")
       
   178 
       
   179 // From ICL documentation:
       
   180 // "all decoder plugins also support thumbnail decodes with ratios of 1:2, 1:4 and 1:8."
       
   181 const TInt KDecodeScaleRatioMin = 2;
       
   182 const TInt KDecodeScaleRatioMax = 8;
       
   183 const TInt KMaxListItemLength = 100;
       
   184 
       
   185 
       
   186 _LIT(KAt,"@");
       
   187 //TODO:: to be enabled once the phonebook exports ExtensionManager.hrh
       
   188 //#define KVIMPSTTabbedViewIdBase 10001 //EExtensionManagerTabViewStartId
       
   189 //#define KVIMPSTSearchViewIdBase  10101 //EExtensionManagerViewStartId 
       
   190 
       
   191 // Database overhead
       
   192 const TInt KEmptyDbSize = 1024;
       
   193 _LIT( KContactId, "ContactId" );
       
   194 _LIT( KContactTable, "Contacts" );
       
   195 // Name for database.
       
   196 _LIT( KStorageExtn, ".db");
       
   197 //hardcoded path for the local service db file. 
       
   198 _LIT(KDbPath, "c:\\MeCo\\");
       
   199 
       
   200 #endif      // TVIMPSTCONSTS_H
       
   201