author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 1 | 666f914201fb |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 3 |
* All rights reserved. |
williamr@2 | 4 |
* This component and the accompanying materials are made available |
williamr@2 | 5 |
* under the terms of the License "Eclipse Public License v1.0" |
williamr@2 | 6 |
* which accompanies this distribution, and is available |
williamr@2 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 8 |
* |
williamr@2 | 9 |
* Initial Contributors: |
williamr@2 | 10 |
* Nokia Corporation - initial contribution. |
williamr@2 | 11 |
* |
williamr@2 | 12 |
* Contributors: |
williamr@2 | 13 |
* |
williamr@2 | 14 |
* Description: Declaration of the constants |
williamr@2 | 15 |
* |
williamr@2 | 16 |
*/ |
williamr@2 | 17 |
|
williamr@2 | 18 |
|
williamr@2 | 19 |
#ifndef FAVOURITES_LIMITS_H |
williamr@2 | 20 |
#define FAVOURITES_LIMITS_H |
williamr@2 | 21 |
|
williamr@2 | 22 |
// CONSTANTS |
williamr@2 | 23 |
|
williamr@2 | 24 |
//========== Favourites attribute limits ==========// |
williamr@2 | 25 |
|
williamr@2 | 26 |
/// Max. length of an item name. |
williamr@2 | 27 |
LOCAL_C const TInt KFavouritesMaxName = 50; |
williamr@2 | 28 |
/// Max. length of an item URL. |
williamr@2 | 29 |
LOCAL_C const TInt KFavouritesMaxUrl = 1024; |
williamr@2 | 30 |
/// Max. length of an username. |
williamr@2 | 31 |
LOCAL_C const TInt KFavouritesMaxUserName = 40; |
williamr@2 | 32 |
/// Max. length of a password. |
williamr@2 | 33 |
LOCAL_C const TInt KFavouritesMaxPassword = 40; |
williamr@2 | 34 |
|
williamr@2 | 35 |
//========== Fixed Uid values ==========// |
williamr@2 | 36 |
|
williamr@2 | 37 |
/// Null Uid; never assigned. |
williamr@2 | 38 |
LOCAL_C const TInt KFavouritesNullUid = 0; |
williamr@2 | 39 |
/// Uid of the root folder. |
williamr@2 | 40 |
LOCAL_C const TInt KFavouritesRootUid = -1; |
williamr@2 | 41 |
/// Uid of the Homepage. |
williamr@2 | 42 |
LOCAL_C const TInt KFavouritesHomepageUid = -2; |
williamr@2 | 43 |
/// Uid of the Last Visited Page. |
williamr@2 | 44 |
LOCAL_C const TInt KFavouritesLastVisitedUid = -3; |
williamr@2 | 45 |
/** |
williamr@2 | 46 |
* Support for Start Page bookmark in the Browser. That bookmark is created |
williamr@2 | 47 |
* in memory dynamically, and never exists in the database. |
williamr@2 | 48 |
*/ |
williamr@2 | 49 |
LOCAL_C const TInt KFavouritesStartPageUid = -4; |
williamr@2 | 50 |
/** |
williamr@2 | 51 |
* Support for Adaptive Bookmarks Folder in the Browser. That folder is |
williamr@2 | 52 |
* created in memory dynamically, and never exists in the database. |
williamr@2 | 53 |
*/ |
williamr@2 | 54 |
LOCAL_C const TInt KFavouritesAdaptiveItemsFolderUid = -5; |
williamr@2 | 55 |
/** |
williamr@2 | 56 |
* Support for RSS Item in the Browser. That item is |
williamr@2 | 57 |
* created in memory dynamically, and never exists in the database. |
williamr@2 | 58 |
*/ |
williamr@2 | 59 |
LOCAL_C const TInt KFavouritesRSSItemUid = -6; |
williamr@2 | 60 |
/** |
williamr@2 | 61 |
* Support for Saved Deck Item in the Browser. That item is |
williamr@2 | 62 |
* created in memory dynamically, and never exists in the database. |
williamr@2 | 63 |
*/ |
williamr@2 | 64 |
LOCAL_C const TInt KFavouritesSavedDeckItemUid = -7; |
williamr@2 | 65 |
|
williamr@2 | 66 |
//========== Unique name support ==========// |
williamr@2 | 67 |
|
williamr@2 | 68 |
/** |
williamr@2 | 69 |
* Maximum length of the postfix that is generated for unique names. |
williamr@2 | 70 |
* (Unique names are created by appending a (32 bit) number in parenthesis. The |
williamr@2 | 71 |
* longest postfix therefore reads "(4294967296)" (12 characters). |
williamr@2 | 72 |
*/ |
williamr@2 | 73 |
LOCAL_C const TInt KFavouritesMaxPostfix = 13; |
williamr@2 | 74 |
|
williamr@2 | 75 |
//========== Context Id values ==========// |
williamr@2 | 76 |
|
williamr@2 | 77 |
/// Null context id; keep this unused. |
williamr@2 | 78 |
LOCAL_C const TInt32 KFavouritesNullContextId = 0x00000000; |
williamr@2 | 79 |
/// Context id for applications. |
williamr@2 | 80 |
LOCAL_C const TInt32 KFavouritesApplicationContextId = 0x00000001; |
williamr@2 | 81 |
/// Context id for images. |
williamr@2 | 82 |
LOCAL_C const TInt32 KFavouritesImageContextId = 0x00000002; |
williamr@2 | 83 |
/// Context id for audio. |
williamr@2 | 84 |
LOCAL_C const TInt32 KFavouritesAudioContextId = 0x00000003; |
williamr@2 | 85 |
/// Context id for video. |
williamr@2 | 86 |
LOCAL_C const TInt32 KFavouritesVideoContextId = 0x00000004; |
williamr@2 | 87 |
/// Context id for game data. |
williamr@2 | 88 |
LOCAL_C const TInt32 KFavouritesGameDataContextId = 0x00000005; |
williamr@2 | 89 |
/// Context id for ringing tones. |
williamr@2 | 90 |
LOCAL_C const TInt32 KFavouritesRingingToneContextId = 0x00000006; |
williamr@2 | 91 |
/// Context id for skins. |
williamr@2 | 92 |
LOCAL_C const TInt32 KFavouritesSkinContextId = 0x00000007; |
williamr@2 | 93 |
/// Context id for Music Shop music. |
williamr@2 | 94 |
LOCAL_C const TInt32 KFavouritesMusicContextId = 0x00000008; |
williamr@2 | 95 |
|
williamr@2 | 96 |
// Context id for Service. |
williamr@2 | 97 |
LOCAL_C const TInt32 KFavouritesServiceContextId = 0x00000009; |
williamr@2 | 98 |
|
williamr@2 | 99 |
/// Special context IDs for launching into these. |
williamr@2 | 100 |
LOCAL_C const TInt32 KFavouritesFeedsContextId = 0x00000000A; |
williamr@2 | 101 |
|
williamr@2 | 102 |
|
williamr@2 | 103 |
//========== Database names ==========// |
williamr@2 | 104 |
|
williamr@2 | 105 |
/// Browser bookmarks database name. |
williamr@2 | 106 |
_LIT( KBrowserBookmarks, "BrowserBookmarks" ); |
williamr@2 | 107 |
/// Browser saved pages database name. |
williamr@2 | 108 |
_LIT( KBrowserSavedPages, "BrowserSavedPages" ); |
williamr@2 | 109 |
|
williamr@2 | 110 |
#endif |
williamr@2 | 111 |
|
williamr@2 | 112 |
// End of File |