browserui/browser/SrcData/Browser.hrh
branchRCL_3
changeset 48 8e6fa1719340
equal deleted inserted replaced
47:6385c4c93049 48:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 *     contains common definitions for menu id:s
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef BROWSER_HRH
       
    22 #define BROWSER_HRH
       
    23 
       
    24 #include "WmlBrowserBuild.h"
       
    25 #include <bldvariant.hrh>
       
    26 
       
    27 // Commands
       
    28 
       
    29 enum TBrowserCommands
       
    30     {
       
    31     // No command (used, for example, for marking the end of commands in
       
    32     // variable length command lists).
       
    33 
       
    34     EWmlNoCmd = -1,
       
    35 
       
    36     // for Feeds View Application commands
       
    37     EWmlCmdFeedsViewCommandIdBase = 12000,
       
    38     // leave this range empty !!!
       
    39     EWmlCmdFeedsViewLastCommand = 12099,
       
    40 
       
    41     // for FindItem submenu and menuitems
       
    42     EWmlCmdFindInPage = 12100,
       
    43     // and a couple of finditem specific command used in that module
       
    44     // Phone number, Mail, Url, VoIP
       
    45     // leave this range empty !!!
       
    46     EWmlCmdFindInPageLast = 12109,
       
    47 
       
    48     // put dynamic ranges here
       
    49 
       
    50     // Common
       
    51     EWmlCmdDisconnect = 12500,
       
    52     EWmlCmdInfo,
       
    53     EWmlCmdInfoSession,
       
    54     EWmlCmdInfoSecurity,
       
    55     EWmlCmdPageInfo,
       
    56   
       
    57     // IAD: version  
       
    58     EWmlCmdAboutProduct,   
       
    59     // IAD: browser user-initiated IAD update  
       
    60     EWmlCmdProductUpdate,   
       
    61     //  
       
    62     // IAD: help cascade sub-menu  
       
    63     EWmlCmdHelpMenu,  
       
    64 
       
    65     EWmlCmdPreferences,
       
    66     EWmlCmdPreferencesToolbar,
       
    67     EWmlCmdCancelFetch,
       
    68     EWmlCmdUserExit,
       
    69     EWmlCmdCloseBrowser,
       
    70     EWmlCmdChangeConnection,
       
    71 
       
    72     // Goto Pane buttons
       
    73 
       
    74     EWmlCmdGotoPaneGoTo,
       
    75     EWmlCmdGotoPaneCancel,
       
    76     EWmlCmdGotoPaneSelect,
       
    77 
       
    78     // Save Image Dialog buttons
       
    79 
       
    80     EWmlCmdGetUrlGo,
       
    81     EWmlCmdGetUrlCancel,
       
    82 
       
    83     // Browser View
       
    84 
       
    85 //    EWmlCmdDone,
       
    86     EWmlCmdHistory,
       
    87     EWmlCmdServiceOptions,
       
    88     EWmlCmdFavourites,
       
    89     EWmlCmdGoToAddress,
       
    90     EWmlCmdGoToAddressAndSearch,
       
    91     EIsCmdSearchWeb,	// launch search pane  
       
    92     EWmlCmdSaveAsBookmark,
       
    93     EWmlCmdReload,
       
    94     EWmlCmdBack,
       
    95     EWmlCmdForward,
       
    96     EWmlCmdLoadImages,
       
    97     EWmlCmdShowToolBar,
       
    98     EWmlCmdShowShortcutKeymap,
       
    99     EWmlCmdOpenBookmarks,
       
   100     EWmlCmdZoomMode,
       
   101     EWmlCmdZoomSmallest,
       
   102     EWmlCmdZoomSmall,
       
   103     EWmlCmdZoomNormal,
       
   104     EWmlCmdZoomLarge,
       
   105     EWmlCmdZoomLargest,
       
   106     EWmlCmdZoomIn,
       
   107     EWmlCmdZoomOut,
       
   108     EWmlCmdZoomSliderShow,
       
   109     EWmlCmdZoomSliderHide,
       
   110     
       
   111     EWmlCmdFind,            // not used
       
   112     EWmlCmdFindKeyword,     // 'Find keyword' menuitem
       
   113     EWmlCmdFindNext,        // find pane's options list
       
   114     EWmlCmdFindPrevious,    // find pane's options list
       
   115     // Goto Pane buttons
       
   116     EWmlCmdFindKeywordPaneFind,  // not used
       
   117     EWmlCmdFindKeywordPaneClose,
       
   118     EWmlCmdSubscribeTo,     // subscribe to a feed menuitem
       
   119 
       
   120     EWmlCmdSavePage,
       
   121     EWmlCmdOpenLink,
       
   122     EWmlCmdOpenLinkInNewWindow,
       
   123     EWmlCmdOpenItem,
       
   124     EWmlCmdDownload,     // for bookmarks view with no DownloadSubmenu
       
   125     EWmlCmdDownloadSubmenu,     // for bookmarks view
       
   126     EWmlCmdDownloadPage,
       
   127     EWmlCmdDownloadPageNewWindow,
       
   128     EWmlCmdSendAddressViaUnifiedMessage,
       
   129     EWmlCmdDefaultHome,
       
   130     EWmlCmdDefaultBack,
       
   131     EWmlCmdInputElementDone,
       
   132     EWmlCmdInputElementBack,
       
   133     EWmlCmdTableDataElementBack,
       
   134     EWmlCmdCancelScriptRunning,
       
   135     EWmlCmdElementBack,
       
   136     EWmlCmdSearchWeb,
       
   137 
       
   138     // Favourites Views
       
   139 
       
   140     EWmlCmdOpenFolder,
       
   141     EWmlCmdOpenMarkedFolder,            // for OK-Options menu.
       
   142     EWmlCmdBackToPage,
       
   143     EWmlCmdMarkUnmark,
       
   144     EWmlCmdUnmarkOnly,                  // for OK-Options menu.
       
   145     EWmlCmdMark,
       
   146     EWmlCmdUnmark,
       
   147     EWmlCmdMarkAll,
       
   148     EWmlCmdUnmarkAll,
       
   149     EWmlCmdDelete,
       
   150     EWmlCmdDeleteItems,
       
   151     EWmlCmdNewFolder,
       
   152     EWmlCmdMove,
       
   153     EWmlCmdMoveOk,
       
   154     EWmlCmdMoveCancel,
       
   155     EWmlCmdMoveToFolder,
       
   156     EWmlCmdRename,
       
   157     EWmlCmdRetry,
       
   158     EWmlCmdCancel,
       
   159     EWmlCmdBackFromFolder,
       
   160     EWmlCmdRootFolder,
       
   161     EWmlCmdBackToFeedsView,
       
   162 
       
   163     // Bookmarks View
       
   164 
       
   165     EWmlCmdAddBookmark,
       
   166     EWmlCmdSwitchToGotoActive,
       
   167     EWmlCmdEditBookmark,
       
   168     EWmlCmdSendBookmarkViaUnifiedMessage,
       
   169     EWmlCmdManageBookmarks,             // when Small Screen is available
       
   170     EWmlCmdWindowSelectionCancel,
       
   171     EWmlCmdCloseAllWindowButThis,
       
   172 
       
   173 	// GENERIC commands used when dynamic softkey is active in Bookmarks View
       
   174     EBrowserBookmarksCmdCancel,
       
   175     EBrowserBookmarksCmdOpen,
       
   176     EBrowserBookmarksCmdBack,
       
   177     EBrowserBookmarksCmdSoftkeyEmpty,
       
   178 
       
   179 	//Adaptive Bookmarks
       
   180 	EWmlCmdCopyToBookmarks,
       
   181 	EWmlCmdClearAdaptiveBookmarks,
       
   182 	EWmlCmdClearAdaptiveBookmarksNoPrompt,
       
   183 	EWmlCmdSetPreferredBookmark,
       
   184 	EWmlCmdSetUnPreferredBookmark,
       
   185 
       
   186     // Small screen layout specific menu item commands
       
   187 
       
   188     EWmlCmdNavigation,
       
   189 
       
   190     // Settings View
       
   191 
       
   192     EWmlCmdSettingsOpen,
       
   193     EWmlCmdSettingsChange,
       
   194     EWmlCmdShowImages,
       
   195     EWmlCmdDownloads,
       
   196     EWmlCmdTools,
       
   197     EWmlCmdShowMiniature,
       
   198 
       
   199     // WIM buttons
       
   200 
       
   201     EWmlCmdAccept,
       
   202     EWmlCmdReject,
       
   203 
       
   204     // Home Page
       
   205     EWmlCmdSetAsHomePage,
       
   206     EWmlCmdLaunchHomePage,
       
   207 
       
   208     // Multiple Windows Support
       
   209     EWmlCmdWindows,
       
   210     EWmlCmdSwitchWindow,
       
   211     EWmlCmdCloseWindow,
       
   212     EWmlCmdAllowPopups,
       
   213     EWmlCmdBlockPopups,
       
   214 
       
   215     // Privacy Related Items
       
   216     EWmlCmdPrivacy,
       
   217     EWmlCmdClearAllPrivacy,
       
   218     EWmlCmdClearTheCache,
       
   219     EWmlCmdDeleteCookies,
       
   220     EWmlCmdClearHistory,
       
   221     EWmlCmdClearFormAndPasswd,
       
   222 
       
   223     // Rotate Display Option Menu
       
   224     EWmlCmdRotateDisplay,
       
   225     
       
   226     // Open Main Feeds Folder in Bookmarks View
       
   227     EWmlCmdOpenFeedsFolder,
       
   228     EWmlCmdShowAnchorHref,
       
   229     EWmlCmdSaveToGallery,
       
   230     EWmlCmdOpenToViewer,
       
   231     EWmlCmdSmartLinkMakeCall,
       
   232     EWmlCmdSmartLinkSendEmail,
       
   233     EWmlCmdSmartLinkSendSms,
       
   234     EWmlCmdSmartLinkAddToContacts,
       
   235     EWmlCmdSaveUrlAsBookmark,
       
   236     EWmlCmdLoadFocusedImage,
       
   237     EWmlCmdLoadImagesOnly,
       
   238     EWmlCmdLoadImagesAndFlash,
       
   239     EWmlCmdOneStepBack,
       
   240     EWmlCmdShowSubscribeList,
       
   241     EWmlCmdHome,
       
   242     EWmlCmdEdwin,
       
   243     EWmlCmdGo,
       
   244     EWmlCmdOptionsView,    
       
   245     // Toolbar
       
   246     EWmlCmdToolbarExtensionContentView,
       
   247     // Keymap
       
   248     EWmlCmdConfigureShortcutKeymap,
       
   249     EWmlCmdHideShortcutKeymap,
       
   250     // Bookmark Actions Submenu command    
       
   251     EWmlCmdBmActions,
       
   252     //History View
       
   253     EWmlCmdHistoryBack,
       
   254     EWmlCmdHistoryForward,
       
   255     // Content View Full Screen
       
   256     EWmlCmdEnterFullScreenBrowsing,
       
   257     EWmlCmdExitFullScreenBrowsing
       
   258     };
       
   259 
       
   260 // Tabs (Favourites Views)
       
   261 
       
   262 enum TWmlBrowserFavouritesTabs
       
   263     {
       
   264     EWmlTabFavouritesUnused, // NOT USED Avoid controls with 0 id!
       
   265     EWmlTabFavouritesBookmarks
       
   266     };
       
   267 
       
   268 // Control ids.
       
   269 
       
   270 enum TWmlBrowserControls
       
   271     {
       
   272 
       
   273     // Edit Bookmark Form
       
   274 
       
   275     EWmlControlEditBmEditTitle = 1,     // Avoid controls with 0 id!
       
   276     EWmlControlEditBmEditAddress,
       
   277     EWmlControlEditBmEditUsername,
       
   278     EWmlControlEditBmEditPassword,
       
   279     EWmlControlEditBmWapApSelector,
       
   280 
       
   281     // Settings Dialog
       
   282     EWmlControlSettingsEditGateway,
       
   283 
       
   284     // Script User Password Dialog
       
   285     EWmlControlScriptUserPasswdDlgEditUsername,
       
   286     EWmlControlScriptUserPasswdDlgEditPassword,
       
   287 
       
   288     // Input element messages
       
   289     EWmlControlInputFewNote,
       
   290 
       
   291     // Favourites incremental operations wait note
       
   292     EWmlControlIncrementalNote,
       
   293     EWmlControlIdRefreshingPage,
       
   294     EWmlControlIdProcessingPage
       
   295     };
       
   296 
       
   297 // Limit constants (which are included into resources as well).
       
   298 
       
   299 /// Max length of URL.
       
   300 #define KBrowserMaxUrl               1024
       
   301 /// Max length of User name.
       
   302 #define KBrowserMaxUsername          40
       
   303 /// Max length of password.
       
   304 #define KBrowserMaxPassword          40
       
   305 /// Max length of WAP AP.
       
   306 #define KBrowserMaxWapApName         32 /*Display limit - real name is not limited*/
       
   307 /// Max length of text Dialogs.dlgPrompt
       
   308 #define KBrowserMaxPrompt            255
       
   309 
       
   310 /// Max length of URL.
       
   311 #define KFavouritesMaxUrlDefine      1024
       
   312 
       
   313 /// Max length of Goto Pane URL.
       
   314 #define KFavouritesMaxUrlGotoPaneDefine      1000
       
   315 
       
   316 
       
   317 /// Max length of User name.
       
   318 #define KFavouritesMaxUsernameDefine 40
       
   319 /// Max length of password.
       
   320 #define KFavouritesMaxPasswordDefine 40
       
   321 /// Max length of bookmark name.
       
   322 #define KFavouritesMaxBookmarkNameDefine      50
       
   323 
       
   324 /*****************************************************************************/
       
   325 /*****************************************************************************/
       
   326 /*****************************************************************************/
       
   327 
       
   328 //----------------------------------------------------
       
   329 //
       
   330 //    TWmlBrowserMenuRequests
       
   331 //    menu elements
       
   332 //
       
   333 //----------------------------------------------------
       
   334 /*
       
   335 enum TWmlBrowserMenuRequests
       
   336     {
       
   337     EMaskNoneMenuItem = 0,
       
   338     EMaskOpenMenuItem = 1,
       
   339     EMaskViewImageMenuItem = 2,
       
   340     EMaskSaveImageMenuItem = 4
       
   341     };
       
   342 */
       
   343 /*****************************************************************************/
       
   344 /*****************************************************************************/
       
   345 /*****************************************************************************/
       
   346 
       
   347 //----------------------------------------------------
       
   348 //
       
   349 //    TAuthenticationDialogControlIds
       
   350 //
       
   351 //----------------------------------------------------
       
   352 /*
       
   353 enum TAuthenticationDialogControlIds
       
   354     {
       
   355     EAuthUrlId = 100,
       
   356     EAuthRealmId,
       
   357     EAuthUserId,
       
   358     EAuthPasswordId
       
   359     };
       
   360 */
       
   361 // AdaptiveBookmarks
       
   362 enum TWmlSettingsAdaptiveBookmarks
       
   363     {
       
   364     EWmlSettingsAdaptiveBookmarksOn,
       
   365     EWmlSettingsAdaptiveBookmarksHideFolder,
       
   366     EWmlSettingsAdaptiveBookmarksOff
       
   367     };
       
   368 
       
   369 
       
   370 // FullScreen
       
   371 enum TWmlSettingsFullScreen
       
   372     {
       
   373     EWmlSettingsFullScreenSoftkeysOnly,
       
   374     EWmlSettingsFullScreenFullScreen
       
   375     };
       
   376 
       
   377 // MediaVolume
       
   378 enum TWmlSettingsMediaVolume
       
   379 	{
       
   380 	EWmlSettingsVolumeMuted	= 0,
       
   381 	EWmlSettingsVolume1		= 2,
       
   382 	EWmlSettingsVolume2		= 5,
       
   383 	EWmlSettingsVolume3		= 8,
       
   384 	EWmlSettingsVolume4		= 10
       
   385 	};
       
   386 
       
   387 // Cookies
       
   388 enum TWmlSettingsCookies
       
   389     {
       
   390     EWmlSettingsCookieReject,
       
   391     EWmlSettingsCookieAllow
       
   392     };
       
   393 
       
   394 // ECMA
       
   395 enum TWmlSettingsECMA
       
   396     {
       
   397     EWmlSettingsECMADisable,
       
   398     EWmlSettingsECMAEnable
       
   399     };
       
   400 
       
   401 // SCRIPT LOG
       
   402 enum TWmlSettingsScriptLog
       
   403     {
       
   404     EWmlSettingsScriptLogDisable,
       
   405     EWmlSettingsScriptLogToFile,
       
   406     EWmlSettingsScriptLogToConsole,
       
   407     EWmlSettingsScriptLogToConsoleFile
       
   408     };
       
   409 
       
   410 // IMEI
       
   411 enum TWmlSettingsIMEI
       
   412     {
       
   413     EWmlSettingsIMEIDisable,
       
   414     EWmlSettingsIMEIEnable
       
   415     };
       
   416 
       
   417 // HomePage
       
   418 enum TWmlSettingsHomePage
       
   419     {
       
   420     EWmlSettingsHomePageAccessPoint,        // 0
       
   421     EWmlSettingsHomePageAddress,            // 1
       
   422     EWmlSettingsHomePageUseCurrent,         // 2
       
   423     EWmlSettingsHomePageBookmarks           // 3
       
   424     };
       
   425 
       
   426 // FormData
       
   427 enum TWmlSettingsFormData
       
   428     {
       
   429     EWmlSettingsFormDataOff,        // 0
       
   430     EWmlSettingsFormDataOnly,         // 1
       
   431     EWmlSettingsFormDataPlusPassword  // 2
       
   432     };
       
   433 
       
   434 // settings listbox items
       
   435 enum TWmlBrowserSettingsItems
       
   436     {
       
   437     // Main Settings Categories
       
   438     EWmlSettingsGeneral = 0,
       
   439     EWmlSettingsPage,
       
   440     EWmlSettingsPrivacy,
       
   441     EWmlSettingsWebFeeds,
       
   442     EWmlSettingsToolbar,
       
   443     EWmlSettingsShortcuts,
       
   444 
       
   445     // Individual Settings
       
   446     EWmlSettingsAccesspoint,
       
   447     EWmlSettingsAutoLoadContent,
       
   448     EWmlSettingsPageOverview,
       
   449     EWmlSettingsBackList,
       
   450     EWmlSettingsAutoRefresh,
       
   451     EWmlSettingsEncoding,
       
   452     EWmlSettingsAdaptiveBookmarks,
       
   453     EWmlSettingsFullScreen,
       
   454     EWmlSettingsCookies,
       
   455     EWmlSettingsEcma,
       
   456     EWmlSettingsScriptLog,
       
   457     EWmlSettingsHttpSecurityWarnings,
       
   458     EWmlSettingsIMEINotification,
       
   459 
       
   460 #ifdef __WIM
       
   461     EWmlSettingsSaveReceipt,
       
   462 #endif
       
   463     EWmlSettingsMediaVolume,
       
   464     EWmlSettingsAutomaticUpdatingAP,
       
   465     EWmlSettingsAutomaticUpdatingWhileRoaming,
       
   466     EWmlSettingsHomePage,
       
   467     EWmlSettingsUrlSuffix,
       
   468     EWmlSettingsFormDataSaving,
       
   469     EWmlSettingsFontSize,
       
   470 
       
   471     // Multiple Windows Support
       
   472     EWmlSettingsPopupBlocking,
       
   473     // Download Open Support
       
   474     EWmlSettingsDownloadsOpen, 
       
   475     // Search provider support
       
   476     EWmlSettingsSearchProvider,
       
   477     
       
   478     // toolbar buttons
       
   479     EWmlSettingsToolbarOnOff,
       
   480     EWmlSettingsToolbarButton1Cmd,
       
   481     EWmlSettingsToolbarButton2Cmd,
       
   482     EWmlSettingsToolbarButton3Cmd,
       
   483     EWmlSettingsToolbarButton4Cmd,
       
   484     EWmlSettingsToolbarButton5Cmd,
       
   485     EWmlSettingsToolbarButton6Cmd,
       
   486     EWmlSettingsToolbarButton7Cmd,
       
   487 
       
   488     // For CDMA settings, use any values within this range
       
   489     EWmlSettingsCDMAMin = 50,
       
   490     EWmlSettingsSendReferrer,
       
   491     EWmlSettingsCDMAMax = 70,
       
   492 
       
   493     // Shortcut Keys
       
   494     EWmlSettingsShortCutKey1Cmd,
       
   495     EWmlSettingsShortCutKey2Cmd,
       
   496     EWmlSettingsShortCutKey3Cmd,
       
   497     EWmlSettingsShortCutKey4Cmd,
       
   498     EWmlSettingsShortCutKey5Cmd,
       
   499     EWmlSettingsShortCutKey6Cmd,
       
   500     EWmlSettingsShortCutKey7Cmd,
       
   501     EWmlSettingsShortCutKey8Cmd,
       
   502     EWmlSettingsShortCutKey9Cmd,
       
   503     EWmlSettingsShortCutKey0Cmd,
       
   504     EWmlSettingsShortCutKeyStarCmd,
       
   505     EWmlSettingsShortCutKeyHashCmd
       
   506     };
       
   507 
       
   508 	// ShortCuts
       
   509 enum TWmlSettingsShortCuts
       
   510     {
       
   511     EWmlSettingsShortCutsActivateHomepage, // 0
       
   512     EWmlSettingsShortCutsActivateBkmkview,       
       
   513     EWmlSettingsShortCutsGotoPane,            
       
   514     EWmlSettingsShortCutsShowFindKeyword,         
       
   515     EWmlSettingsShortCutsShowSwitchWindowList,          
       
   516     EWmlSettingsShortCutsZoomOut,       
       
   517     EWmlSettingsShortCutsZoomIn,             
       
   518     EWmlSettingsShortCutsGotoPreviousPage,       
       
   519     EWmlSettingsShortCutsShowMiniature,
       
   520     EWmlSettingsShortCutsShowFullScreen,
       
   521     EWmlSettingsShortCutsZoomMode
       
   522     };
       
   523 
       
   524 enum TWmlSettingsAutoloadContent
       
   525     {
       
   526     EWmlSettingsAutoloadText,
       
   527     EWmlSettingsAutoloadImagesNoFlash,
       
   528     EWmlSettingsAutoloadAll    
       
   529     };
       
   530     
       
   531 #ifdef __RSS_FEEDS
       
   532 #include "Feeds.hrh"
       
   533 #endif  // __RSS_FEEDS
       
   534 
       
   535 #endif // BROWSER_HRH
       
   536 
       
   537 // End of File