65
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 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:
|
|
15 |
* Common constants
|
|
16 |
*
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef COMMONCONSTANTS_H
|
|
22 |
#define COMMONCONSTANTS_H
|
|
23 |
|
|
24 |
// INCLUDE FILES
|
|
25 |
#include <aknconsts.h>
|
|
26 |
|
|
27 |
// CONSTANTS
|
|
28 |
|
|
29 |
const TUid KUidBrowserContentViewId = { 75 };
|
|
30 |
const TUid KUidBrowserBookmarksViewId = { 79 };
|
|
31 |
const TUid KUidBrowserSettingsViewId = { 78 };
|
|
32 |
const TUid KUidBrowserStartupViewId = { 81 };
|
|
33 |
const TUid KUidBrowserWindowSelectionViewId = { 83 };
|
|
34 |
const TUid KUidBrowserInitialViewId = { 84 };
|
|
35 |
const TUid KUidBrowserFeedsFolderViewId = { 85 };
|
|
36 |
const TUid KUidBrowserFeedsTopicViewId = { 86 };
|
|
37 |
const TUid KUidBrowserFeedsFeedViewId = { 87 };
|
|
38 |
|
|
39 |
const TUid KUidBrowserNullViewId = { 0 }; ///< null view id used in startup
|
|
40 |
|
|
41 |
const TUid KUidCustomMsgDownloadsList = { 0x01 }; ///< jump to download list
|
|
42 |
const TUid KUidSettingsGotoToolbarGroup = { 0x02 }; ///< jump to toolbar section of settings view
|
|
43 |
const TUid KUidSettingsGotoShortcutsGroup = { 0x03 }; ///< jump to shortcuts section of settings view
|
|
44 |
|
|
45 |
// Granualities for dynamic arrays
|
|
46 |
const TInt KGranularityLow = 10; ///< minimum granularity
|
|
47 |
const TInt KGranularityMedium = 5;
|
|
48 |
const TInt KGranularityHigh = 2; ///< maximum gr.
|
|
49 |
|
|
50 |
_LIT( KHttpString, "http://" );
|
|
51 |
_LIT( KFileString, "file://" );
|
|
52 |
_LIT( KWWWString, "http://www." );
|
|
53 |
|
|
54 |
|
|
55 |
#define KBrsrMalformedUrl -26018
|
|
56 |
#define KBrsrUnknownScheme -26026
|
|
57 |
#define KBrsrWmlbrowserCardNotInDeck -26144
|
|
58 |
|
|
59 |
_LIT( KWmlValueHttpScheme, "http" );
|
|
60 |
|
|
61 |
#define KAvkonMbmPath KAvkonBitmapFile
|
|
62 |
|
|
63 |
_LIT( KBrowserDirAndFile,"z:browser.mbm");
|
|
64 |
|
|
65 |
_LIT( KWmlValueFile, "file" );
|
|
66 |
_LIT( KWmlValueFileSlashSlashSlashStr, "file:///" );
|
|
67 |
// _LIT( KWmlDefaultLocation, "c:" );
|
|
68 |
// _LIT( KWmlDefaultLocationSlash, "c:/" );
|
|
69 |
_LIT( KWmlBackSlash, "\\" );
|
|
70 |
|
|
71 |
const TInt KWmlEmptyResourceId = 0;
|
|
72 |
|
|
73 |
const TInt KMaxUrlLenghtInOTA = 255;
|
|
74 |
const TInt KMaxHomePgUrlLength = 1000;
|
|
75 |
const TInt KMaxSearchPgUrlLength = 1000;
|
|
76 |
const TInt KAhlePrimaryStorage = 100; //AHLE primary storage, also used
|
|
77 |
//as adaptive bookmarks max list size
|
|
78 |
|
|
79 |
// Encodings (character set ids) - no header file is provided with character set
|
|
80 |
const TUint KCharacterSetIdentifierWindows1250 = 0x100059D6;
|
|
81 |
const TUint KCharacterSetIdentifierWindows1251 = 0x100059D7;
|
|
82 |
const TUint KCharacterSetIdentifierWindows1253 = 0x100059D8;
|
|
83 |
const TUint KCharacterSetIdentifierWindows1254 = 0x100059D9;
|
|
84 |
const TUint KCharacterSetIdentifierWindows1255 = 0x101F8547;
|
|
85 |
const TUint KCharacterSetIdentifierWindows1256 = 0x101F8548;
|
|
86 |
const TUint KCharacterSetIdentifierWindows1257 = 0x100059DA;
|
|
87 |
const TUint KCharacterSetIdentifierWindows1258 = 0x102073B8;
|
|
88 |
const TUint KCharacterSetIdentifierTis620 = 0x101f8549;
|
|
89 |
const TUint KCharacterSetIdentifierWindows874 = 0x101F854A;
|
|
90 |
const TUint KCharacterSetIdentifierKoi8_r = 0x101f8778; // Russian
|
|
91 |
const TUint KCharacterSetIdentifierKoi8_u = 0x101f8761; // Ukrainian
|
|
92 |
const TUint KCharacterSetIdentifierIscii_temp = 0x1027508E;
|
|
93 |
|
|
94 |
const TUint KCharacterSetIdentifierEucKr = 0x2000E526; // Korean
|
|
95 |
const TUint KCharacterSetIdentifierKsc5601_temp = 0x200113CD; // Korean
|
|
96 |
const TUint KCharacterSetIdentifierAutomatic = 0x00;
|
|
97 |
const TUint KCharacterSetIdentifierUCS2 = 0xffffffff; // dummy value this id is never checked
|
|
98 |
|
|
99 |
#endif // COMMONCONSTANTS_H
|