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