1 favouriteslimits.h |
1 /* |
|
2 * Copyright (c) 2004 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 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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declaration of the constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef FAVOURITES_LIMITS_H |
|
20 #define FAVOURITES_LIMITS_H |
|
21 |
|
22 // CONSTANTS |
|
23 |
|
24 //========== Favourites attribute limits ==========// |
|
25 |
|
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; |
|
34 |
|
35 //========== Fixed Uid values ==========// |
|
36 |
|
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; |
|
45 /** |
|
46 * Support for Start Page bookmark in the Browser. That bookmark is created |
|
47 * in memory dynamically, and never exists in the database. |
|
48 */ |
|
49 LOCAL_C const TInt KFavouritesStartPageUid = -4; |
|
50 /** |
|
51 * Support for Adaptive Bookmarks Folder in the Browser. That folder is |
|
52 * created in memory dynamically, and never exists in the database. |
|
53 */ |
|
54 LOCAL_C const TInt KFavouritesAdaptiveItemsFolderUid = -5; |
|
55 /** |
|
56 * Support for RSS Item in the Browser. That item is |
|
57 * created in memory dynamically, and never exists in the database. |
|
58 */ |
|
59 LOCAL_C const TInt KFavouritesRSSItemUid = -6; |
|
60 /** |
|
61 * Support for Saved Deck Item in the Browser. That item is |
|
62 * created in memory dynamically, and never exists in the database. |
|
63 */ |
|
64 LOCAL_C const TInt KFavouritesSavedDeckItemUid = -7; |
|
65 |
|
66 //========== Unique name support ==========// |
|
67 |
|
68 /** |
|
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). |
|
72 */ |
|
73 LOCAL_C const TInt KFavouritesMaxPostfix = 13; |
|
74 |
|
75 //========== Context Id values ==========// |
|
76 |
|
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; |
|
95 |
|
96 // Context id for Service. |
|
97 LOCAL_C const TInt32 KFavouritesServiceContextId = 0x00000009; |
|
98 |
|
99 /// Special context IDs for launching into these. |
|
100 LOCAL_C const TInt32 KFavouritesFeedsContextId = 0x00000000A; |
|
101 |
|
102 |
|
103 //========== Database names ==========// |
|
104 |
|
105 /// Browser bookmarks database name. |
|
106 _LIT( KBrowserBookmarks, "BrowserBookmarks" ); |
|
107 /// Browser saved pages database name. |
|
108 _LIT( KBrowserSavedPages, "BrowserSavedPages" ); |
|
109 |
|
110 #endif |
|
111 |
|
112 // End of File |