2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Declaration of the constants
19 #ifndef FAVOURITES_LIMITS_H
20 #define FAVOURITES_LIMITS_H
24 //========== Favourites attribute limits ==========//
26 /// Max. length of an item name.
27 LOCAL_C const TInt KFavouritesMaxName = 50;
28 /// Max. length of an item URL.
29 LOCAL_C const TInt KFavouritesMaxUrl = 1024;
30 /// Max. length of an username.
31 LOCAL_C const TInt KFavouritesMaxUserName = 40;
32 /// Max. length of a password.
33 LOCAL_C const TInt KFavouritesMaxPassword = 40;
35 //========== Fixed Uid values ==========//
37 /// Null Uid; never assigned.
38 LOCAL_C const TInt KFavouritesNullUid = 0;
39 /// Uid of the root folder.
40 LOCAL_C const TInt KFavouritesRootUid = -1;
41 /// Uid of the Homepage.
42 LOCAL_C const TInt KFavouritesHomepageUid = -2;
43 /// Uid of the Last Visited Page.
44 LOCAL_C const TInt KFavouritesLastVisitedUid = -3;
46 * Support for Start Page bookmark in the Browser. That bookmark is created
47 * in memory dynamically, and never exists in the database.
49 LOCAL_C const TInt KFavouritesStartPageUid = -4;
51 * Support for Adaptive Bookmarks Folder in the Browser. That folder is
52 * created in memory dynamically, and never exists in the database.
54 LOCAL_C const TInt KFavouritesAdaptiveItemsFolderUid = -5;
56 * Support for RSS Item in the Browser. That item is
57 * created in memory dynamically, and never exists in the database.
59 LOCAL_C const TInt KFavouritesRSSItemUid = -6;
61 * Support for Saved Deck Item in the Browser. That item is
62 * created in memory dynamically, and never exists in the database.
64 LOCAL_C const TInt KFavouritesSavedDeckItemUid = -7;
66 //========== Unique name support ==========//
69 * Maximum length of the postfix that is generated for unique names.
70 * (Unique names are created by appending a (32 bit) number in parenthesis. The
71 * longest postfix therefore reads "(4294967296)" (12 characters).
73 LOCAL_C const TInt KFavouritesMaxPostfix = 13;
75 //========== Context Id values ==========//
77 /// Null context id; keep this unused.
78 LOCAL_C const TInt32 KFavouritesNullContextId = 0x00000000;
79 /// Context id for applications.
80 LOCAL_C const TInt32 KFavouritesApplicationContextId = 0x00000001;
81 /// Context id for images.
82 LOCAL_C const TInt32 KFavouritesImageContextId = 0x00000002;
83 /// Context id for audio.
84 LOCAL_C const TInt32 KFavouritesAudioContextId = 0x00000003;
85 /// Context id for video.
86 LOCAL_C const TInt32 KFavouritesVideoContextId = 0x00000004;
87 /// Context id for game data.
88 LOCAL_C const TInt32 KFavouritesGameDataContextId = 0x00000005;
89 /// Context id for ringing tones.
90 LOCAL_C const TInt32 KFavouritesRingingToneContextId = 0x00000006;
91 /// Context id for skins.
92 LOCAL_C const TInt32 KFavouritesSkinContextId = 0x00000007;
93 /// Context id for Music Shop music.
94 LOCAL_C const TInt32 KFavouritesMusicContextId = 0x00000008;
96 // Context id for Service.
97 LOCAL_C const TInt32 KFavouritesServiceContextId = 0x00000009;
99 /// Special context IDs for launching into these.
100 LOCAL_C const TInt32 KFavouritesFeedsContextId = 0x00000000A;
103 //========== Database names ==========//
105 /// Browser bookmarks database name.
106 _LIT( KBrowserBookmarks, "BrowserBookmarks" );
107 /// Browser saved pages database name.
108 _LIT( KBrowserSavedPages, "BrowserSavedPages" );