|
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 * Interface for Preferences handling. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef MPREFERENCES_H |
|
22 #define MPREFERENCES_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32def.h> |
|
26 #include <e32const.h> |
|
27 #include <e32std.h> |
|
28 |
|
29 #include "Browser.hrh" |
|
30 #include <bldvariant.hrh> |
|
31 |
|
32 #include <BrCtlDefs.h> |
|
33 #include <ApAccessPointItem.h> |
|
34 |
|
35 #include <CmApplicationSettingsUi.h> |
|
36 |
|
37 using namespace CMManager; |
|
38 // FORWARD DECLARATIONS |
|
39 |
|
40 // CONSTS |
|
41 |
|
42 const TUint KWmlNoDefaultAccessPoint = KMaxTUint; |
|
43 const TUint KWmlNoDefaultSnapId = KMaxTUint; |
|
44 |
|
45 const TInt KShortCutFuncStringLength = 32; |
|
46 |
|
47 const TInt KUrlSuffixMaxLength = 256; |
|
48 |
|
49 // CLASS DECLARATION |
|
50 class CVpnApItem; |
|
51 |
|
52 //============================================================================= |
|
53 // Observer for the MPreferences Class |
|
54 // |
|
55 |
|
56 /** |
|
57 * Helper struct for MPreferencesObserver |
|
58 */ |
|
59 struct TPreferencesValues |
|
60 { |
|
61 // Setting Values |
|
62 TUint iDefaultAccessPoint; |
|
63 TUint iDefaultSnapId; |
|
64 CApAccessPointItem* iDefaultAPDetails; //cache all data |
|
65 // It is stored because of VPN. Default value = KWmlNoDefaultAccessPoint, |
|
66 // means it is not VPN AP, otherwise iAssocVpn = iDefaultAccessPoint |
|
67 // iDefaultAPDetails always stores real AP specific settings. |
|
68 TUint iAssocVpn; |
|
69 TCmSettingSelectionMode iAccessPointSelectionMode; |
|
70 TInt iAutoLoadContent; |
|
71 TInt iFontSize; |
|
72 TBool iTextWrap; |
|
73 TWmlSettingsCookies iCookies; |
|
74 TBool iPageOverview; |
|
75 TBool iBackList; |
|
76 TBool iAutoRefresh; |
|
77 TWmlSettingsECMA iEcma; |
|
78 TWmlSettingsIMEI iIMEINotification; |
|
79 TUint32 iEncoding; |
|
80 TWmlSettingsFullScreen iFullScreen; |
|
81 TBool iQueryOnExit; |
|
82 TBool iSendReferrer; |
|
83 TWmlSettingsAdaptiveBookmarks iAdaptiveBookmarks; |
|
84 TWmlSettingsHomePage iHomePgType; |
|
85 TBool iHTTPSecuritySupressed; |
|
86 TBool iDownloadsOpen; |
|
87 TBool iConnDialogs; |
|
88 TBool iHttpSecurityWarnings; |
|
89 TInt iMediaVolume; |
|
90 HBufC* iSearchPgURL; |
|
91 HBufC* iHomePgURL; |
|
92 TBool iPopupBlocking; |
|
93 TWmlSettingsFormData iFormDataSaving; |
|
94 TUint iAutomaticUpdatingAP; |
|
95 TBool iAutomaticUpdatingWhileRoaming; |
|
96 TBool iAccessKeys; |
|
97 HBufC* iShortCutFuncHomePg; |
|
98 HBufC* iShortCutFuncBkMark; |
|
99 HBufC* iShortCutFuncFindKeyWord; |
|
100 HBufC* iShortCutFuncPrePage; |
|
101 HBufC* iUrlSuffixList; |
|
102 HBufC* iShortCutFuncSwitchWin; |
|
103 HBufC* iShortCutFuncMiniImage; |
|
104 HBufC* iShortCutFuncFullScreen; |
|
105 HBufC* iShortCutFuncGoAddr; |
|
106 HBufC* iShortCutFuncZoomIn; |
|
107 HBufC* iShortCutFuncZoomOut; |
|
108 HBufC* iShortCutFuncZoomMode; |
|
109 TBool iRotateDisplay; |
|
110 TInt iToolbarOnOff; // Turns Toolbar On or Off ( 0 = Off ; 1 = On) |
|
111 TInt iToolbarButton1Cmd; // see Toolbar Button Command List for cenrep values |
|
112 TInt iToolbarButton2Cmd; // see Toolbar Button Command List for cenrep values |
|
113 TInt iToolbarButton3Cmd; // see Toolbar Button Command List for cenrep values |
|
114 TInt iToolbarButton4Cmd; // see Toolbar Button Command List for cenrep values |
|
115 TInt iToolbarButton5Cmd; // see Toolbar Button Command List for cenrep values |
|
116 TInt iToolbarButton6Cmd; // see Toolbar Button Command List for cenrep values |
|
117 TInt iToolbarButton7Cmd; // see Toolbar Button Command List for cenrep values |
|
118 TInt iShortcutKeysForQwerty; |
|
119 TInt iShortcutKey1Cmd; |
|
120 TInt iShortcutKey2Cmd; |
|
121 TInt iShortcutKey3Cmd; |
|
122 TInt iShortcutKey4Cmd; |
|
123 TInt iShortcutKey5Cmd; |
|
124 TInt iShortcutKey6Cmd; |
|
125 TInt iShortcutKey7Cmd; |
|
126 TInt iShortcutKey8Cmd; |
|
127 TInt iShortcutKey9Cmd; |
|
128 TInt iShortcutKey0Cmd; |
|
129 TInt iShortcutKeyStarCmd; |
|
130 TInt iShortcutKeyHashCmd; |
|
131 TUint32 iScriptLog; |
|
132 // Minimum, Maximum and Default (for new page) Zoom Level settings |
|
133 TUint32 iZoomLevelMin; |
|
134 TUint32 iZoomLevelMax; |
|
135 TUint32 iZoomLevelDefault; |
|
136 TInt iMaxRecentUrlsToShow; |
|
137 }; |
|
138 |
|
139 /** |
|
140 * Helper enum for MPreferencesObserver |
|
141 */ |
|
142 enum TPreferencesEvent |
|
143 { |
|
144 EPreferencesActivate, // Preferences opened |
|
145 EPreferencesDeactivate, // Preferences closed |
|
146 EPreferencesItemChange // Setting change has occurred |
|
147 }; |
|
148 |
|
149 |
|
150 /** |
|
151 * Mixin class for observing changes in preferences. |
|
152 */ |
|
153 class MPreferencesObserver |
|
154 { |
|
155 public: |
|
156 |
|
157 /** |
|
158 * Derived classes should implement this method, and act accordingly. |
|
159 */ |
|
160 virtual void HandlePreferencesChangeL( |
|
161 const TPreferencesEvent aEvent, |
|
162 TPreferencesValues& aValues, |
|
163 TBrCtlDefs::TBrCtlSettings aSettingType ) = 0; |
|
164 }; |
|
165 |
|
166 //============================================================================= |
|
167 |
|
168 /** |
|
169 * Interface for Preferences handling. |
|
170 */ |
|
171 class MPreferences |
|
172 { |
|
173 public: // New functions |
|
174 |
|
175 /** |
|
176 * To read all of the preferences in one go |
|
177 */ |
|
178 virtual const TPreferencesValues& AllPreferencesL() = 0; |
|
179 |
|
180 /** |
|
181 * To access embedded mode |
|
182 */ |
|
183 virtual TBool EmbeddedMode() const = 0; |
|
184 |
|
185 /** |
|
186 * To access DefaultAccessPoint setting |
|
187 */ |
|
188 virtual TUint DefaultAccessPoint() const = 0; |
|
189 |
|
190 |
|
191 /** |
|
192 * To access DefaultSnapId setting |
|
193 */ |
|
194 |
|
195 virtual TUint DefaultSnapId() const = 0; |
|
196 |
|
197 /** |
|
198 * To access deafult AP details if exist setting. |
|
199 */ |
|
200 virtual CApAccessPointItem* DefaultAPDetails() = 0; |
|
201 |
|
202 /** |
|
203 * To access Associated VPN Ap if exist |
|
204 */ |
|
205 virtual TUint AssociatedVpn() const = 0; |
|
206 |
|
207 /** |
|
208 * Get the vpn item if it is vpn |
|
209 */ |
|
210 virtual TBool VpnDataL( TUint aDefaultAccessPoint, CVpnApItem& aVpnItem ) = 0; |
|
211 |
|
212 /** |
|
213 * To access AutoLoadContent setting |
|
214 */ |
|
215 virtual TInt AutoLoadContent() const = 0; |
|
216 |
|
217 /** |
|
218 * To access PageOverview setting |
|
219 */ |
|
220 virtual TBool PageOverview() const = 0; |
|
221 |
|
222 /** |
|
223 * To access BackList setting |
|
224 */ |
|
225 virtual TBool BackList() const = 0; |
|
226 |
|
227 /** |
|
228 * To access AutoRefresh setting |
|
229 */ |
|
230 virtual TBool AutoRefresh() const = 0; |
|
231 |
|
232 /* |
|
233 * Sets the automatic updating access point of Web Feeds |
|
234 */ |
|
235 virtual void SetAutomaticUpdatingApL( TUint aSetting ) = 0; |
|
236 /* |
|
237 * Sets the automatic updating while roaming of News & Blogs |
|
238 */ |
|
239 virtual void SetAutomaticUpdatingWhileRoamingL( TBool aAutoUpdateRoaming ) = 0; |
|
240 |
|
241 /** |
|
242 * To modify user-defined URL suffix list (.com, .org, .net) |
|
243 */ |
|
244 virtual void SetURLSuffixList( HBufC* aValue ) = 0; |
|
245 |
|
246 /** |
|
247 * To access user-defined URL suffix list (.com, org, .net) |
|
248 */ |
|
249 virtual HBufC* URLSuffixList( ) const = 0; |
|
250 /** |
|
251 * automatic updating access point of Web Feeds |
|
252 */ |
|
253 virtual TUint AutomaticUpdatingAP() const = 0; |
|
254 /** |
|
255 * automatic updating while roaming of News & Blogs |
|
256 */ |
|
257 virtual TBool AutomaticUpdatingWhileRoaming() const = 0; |
|
258 |
|
259 /** |
|
260 * To access TextWrap setting |
|
261 @ return setting item value |
|
262 */ |
|
263 virtual TBool TextWrap() const = 0; |
|
264 |
|
265 /** |
|
266 * To access FontSize setting |
|
267 */ |
|
268 virtual TInt FontSize() const = 0; |
|
269 |
|
270 /** |
|
271 * To access Encoding setting |
|
272 */ |
|
273 virtual TUint32 Encoding() const = 0; |
|
274 |
|
275 /** |
|
276 * To access Adaptive Bookmarks setting |
|
277 */ |
|
278 virtual enum TWmlSettingsAdaptiveBookmarks AdaptiveBookmarks() const = 0; |
|
279 |
|
280 /** |
|
281 * To access FullScreen setting |
|
282 */ |
|
283 virtual enum TWmlSettingsFullScreen FullScreen() const = 0; |
|
284 |
|
285 /** |
|
286 * To access Cookies setting |
|
287 */ |
|
288 virtual enum TWmlSettingsCookies Cookies() const = 0; |
|
289 |
|
290 /** |
|
291 * To access ECMA setting |
|
292 */ |
|
293 virtual enum TWmlSettingsECMA Ecma() const = 0; |
|
294 |
|
295 /** |
|
296 * To access ScriptLog setting |
|
297 */ |
|
298 virtual TUint32 ScriptLog() const = 0; |
|
299 |
|
300 /** |
|
301 * To access HTTP security warning setting |
|
302 */ |
|
303 virtual TBool HttpSecurityWarnings() const = 0; |
|
304 |
|
305 /** |
|
306 * To access IMEI notification setting |
|
307 */ |
|
308 virtual enum TWmlSettingsIMEI IMEINotification() const = 0; |
|
309 |
|
310 /** |
|
311 *To access HTTP security warning supression - read only pref. |
|
312 */ |
|
313 virtual TBool HttpSecurityWarningsStatSupressed() const = 0; |
|
314 |
|
315 /** |
|
316 * To access Downloads Open setting |
|
317 */ |
|
318 virtual TBool DownloadsOpen() const = 0; |
|
319 |
|
320 /** |
|
321 * To access user-defined homepage URL setting |
|
322 */ |
|
323 virtual TInt HomePageUrlL( TDes& aUrl, TBool aForceLoadFromSD = EFalse ) const = 0; |
|
324 |
|
325 /** |
|
326 * Get the home page URL from belongs to the access point. |
|
327 */ |
|
328 virtual TInt HomePageFromIapL( TDes& aUrl, TUint aIap ) const = 0; |
|
329 |
|
330 /** |
|
331 * To access user-defined search page URL setting |
|
332 */ |
|
333 virtual TPtrC SearchPageUrlL() = 0; |
|
334 |
|
335 /** |
|
336 * To access Query Exit setting |
|
337 */ |
|
338 virtual TBool QueryOnExit() const = 0; |
|
339 |
|
340 /** |
|
341 * To access Send Referrer setting |
|
342 */ |
|
343 virtual TBool SendReferrer() const = 0; |
|
344 |
|
345 /** |
|
346 * To access Media Volume setting |
|
347 */ |
|
348 virtual TInt MediaVolume() const = 0; |
|
349 |
|
350 /** |
|
351 * To access ShowConnectionDialogs setting |
|
352 */ |
|
353 virtual TBool ShowConnectionDialogs() const = 0; |
|
354 |
|
355 /** |
|
356 * To check that an engine local feature is supported or not |
|
357 */ |
|
358 |
|
359 virtual TBool EngineLocalFeatureSupported( const TInt aFeature ) const = 0; |
|
360 |
|
361 /** |
|
362 * To check that a ui local feature is supported or not |
|
363 */ |
|
364 |
|
365 virtual TBool UiLocalFeatureSupported( const TInt aFeature ) const = 0; |
|
366 |
|
367 /** |
|
368 * To access home page's type: AP/user defined. |
|
369 */ |
|
370 virtual enum TWmlSettingsHomePage HomePageType() const = 0; |
|
371 |
|
372 /** |
|
373 * To access Popup Blocking Enabled setting# |
|
374 */ |
|
375 virtual TBool PopupBlocking() const = 0; |
|
376 |
|
377 /** |
|
378 * To access Form Data Saving setting |
|
379 */ |
|
380 virtual TWmlSettingsFormData FormDataSaving() const = 0; |
|
381 |
|
382 /** |
|
383 * To access Access Keys setting : Enabled/Disabled |
|
384 */ |
|
385 virtual TBool AccessKeys() const = 0; |
|
386 |
|
387 /** |
|
388 * To modify DefaultAccessPoint setting |
|
389 */ |
|
390 virtual void SetDefaultAccessPointL( TUint aDefaultAccessPoint, TUint aAssocVpn = KWmlNoDefaultAccessPoint ) = 0; |
|
391 |
|
392 /** |
|
393 * To modify DefaultSnapId setting |
|
394 */ |
|
395 virtual void SetDefaultSnapId (TUint aSnapId) = 0; |
|
396 |
|
397 /** |
|
398 * To modify AutoLoadContent setting |
|
399 */ |
|
400 virtual void SetAutoLoadContentL( TInt aAutoLoadContent ) = 0; |
|
401 |
|
402 /** |
|
403 * To modify PageOverview setting |
|
404 */ |
|
405 virtual void SetPageOverviewL( TBool aPageOverview ) = 0; |
|
406 |
|
407 /** |
|
408 * To modify BackList setting |
|
409 */ |
|
410 virtual void SetBackListL( TBool aBackList ) = 0; |
|
411 |
|
412 /** |
|
413 * To modify AutoRefresh setting |
|
414 */ |
|
415 virtual void SetAutoRefreshL( TBool aAutoRefresh ) = 0; |
|
416 |
|
417 /** |
|
418 * To modify TextWrap setting |
|
419 */ |
|
420 virtual void SetTextWrapL( TBool aTextWrap ) = 0; |
|
421 |
|
422 /** |
|
423 * To modify FontSize setting |
|
424 */ |
|
425 virtual void SetFontSizeL( TInt aFontSize ) = 0; |
|
426 |
|
427 /** |
|
428 * To modify encoding settings |
|
429 */ |
|
430 virtual void SetEncodingL( TUint32 aEncoding ) = 0; |
|
431 |
|
432 /** |
|
433 * To modify Adaptive Bookmarks setting |
|
434 */ |
|
435 virtual void SetAdaptiveBookmarksL( TWmlSettingsAdaptiveBookmarks aAdaptiveBookmarks ) = 0; |
|
436 |
|
437 /** |
|
438 * To modify FullScreen setting |
|
439 */ |
|
440 virtual void SetFullScreenL( TWmlSettingsFullScreen aFullScreen ) = 0; |
|
441 |
|
442 /** |
|
443 * To modify Cookies setting |
|
444 */ |
|
445 virtual void SetCookiesL( TWmlSettingsCookies aCookies ) = 0; |
|
446 |
|
447 /** |
|
448 * To modify ECMA setting |
|
449 */ |
|
450 virtual void SetEcmaL( TWmlSettingsECMA aEcma ) = 0; |
|
451 |
|
452 /** |
|
453 * To modify Script Console setting |
|
454 */ |
|
455 virtual void SetScriptLogL( TUint32 aScriptLog ) = 0; |
|
456 |
|
457 /** |
|
458 * To modify HTTP security warnings setting |
|
459 */ |
|
460 virtual void SetHttpSecurityWarningsL( TBool aWarningsOn ) = 0; |
|
461 |
|
462 /** |
|
463 * To modify IMEI notification setting |
|
464 */ |
|
465 virtual void SetIMEINotificationL( TWmlSettingsIMEI aIMEINotification ) = 0; |
|
466 |
|
467 /** |
|
468 * To modify Downloads Open setting |
|
469 */ |
|
470 virtual void SetDownloadsOpenL( TBool aOpen ) = 0; |
|
471 |
|
472 /** |
|
473 * To modify Media Volume setting |
|
474 */ |
|
475 virtual void SetMediaVolumeL( TInt aMediaVolume ) = 0; |
|
476 |
|
477 /** |
|
478 * To modify HomePage's type: AP/user defined. |
|
479 */ |
|
480 virtual void SetHomePageTypeL( TWmlSettingsHomePage aHomePageType ) = 0; |
|
481 |
|
482 /** |
|
483 * To modify user-defined HomePage. |
|
484 */ |
|
485 virtual void SetHomePageUrlL( const TDesC& aHomePageURL ) = 0; |
|
486 |
|
487 /** |
|
488 * To modify user-defined Search page URL |
|
489 */ |
|
490 virtual void SetSearchPageUrlL( const TDesC& aSearchPageURL ) = 0; |
|
491 |
|
492 /** |
|
493 * To determine that is there an overridden default access point defined or not |
|
494 */ |
|
495 virtual TBool CustomAccessPointDefined() = 0; |
|
496 |
|
497 /** |
|
498 * To access to the list of self download content types. |
|
499 * See CBrCtlInterface::SetSelfDownloadContentTypesL()! |
|
500 */ |
|
501 virtual TPtrC SelfDownloadContentTypesL() = 0; |
|
502 |
|
503 /** |
|
504 * To access Default Access Point selection mode settings. |
|
505 */ |
|
506 virtual TCmSettingSelectionMode AccessPointSelectionMode() = 0; |
|
507 |
|
508 /** |
|
509 * To modify Default Access Point Settings |
|
510 */ |
|
511 virtual void SetAccessPointSelectionModeL( TCmSettingSelectionMode aAccessPointSelectionMode ) = 0; |
|
512 |
|
513 /** |
|
514 * To modify Popup Blocking Enabled settign |
|
515 */ |
|
516 virtual void SetPopupBlockingL( TBool aPopupBlocking ) = 0; |
|
517 |
|
518 /** |
|
519 * To modify Form Data Saving setting |
|
520 */ |
|
521 virtual void SetFormDataSavingL( TWmlSettingsFormData aFormDataSaving ) = 0; |
|
522 |
|
523 /** |
|
524 * To access pre defined short cut keys |
|
525 */ |
|
526 virtual HBufC* ShortCutFuncHomePg() const = 0; |
|
527 |
|
528 /** |
|
529 * To access pre defined short cut keys |
|
530 */ |
|
531 virtual HBufC* ShortCutFuncBkMark() const = 0; |
|
532 |
|
533 /** |
|
534 * To access pre defined short cut keys |
|
535 */ |
|
536 virtual HBufC* ShortCutFuncFindKeyWord() const = 0; |
|
537 |
|
538 /** |
|
539 * To access pre defined short cut keys |
|
540 */ |
|
541 virtual HBufC* ShortCutFuncPrePage() const = 0; |
|
542 |
|
543 /** |
|
544 * To access pre defined short cut keys |
|
545 */ |
|
546 virtual HBufC* ShortCutFuncSwitchWin() const = 0; |
|
547 |
|
548 /** |
|
549 * To access pre defined short cut keys |
|
550 */ |
|
551 virtual HBufC* ShortCutFuncMiniImage() const = 0; |
|
552 |
|
553 /** |
|
554 * To access pre defined short cut keys |
|
555 */ |
|
556 virtual HBufC* ShortCutFuncFullScreen() const = 0; |
|
557 |
|
558 /** |
|
559 * To access pre defined short cut keys |
|
560 */ |
|
561 virtual HBufC* ShortCutFuncGoAddr() const = 0; |
|
562 |
|
563 /** |
|
564 * To access pre defined short cut keys |
|
565 */ |
|
566 virtual HBufC* ShortCutFuncZoomIn() const = 0; |
|
567 |
|
568 /** |
|
569 * To access pre defined short cut keys |
|
570 */ |
|
571 virtual HBufC* ShortCutFuncZoomOut() const = 0; |
|
572 |
|
573 /** |
|
574 * To access pre defined short cut keys |
|
575 */ |
|
576 virtual HBufC* ShortCutFuncZoomMode() const = 0; |
|
577 |
|
578 /** |
|
579 * To get value of Rotate Display setting |
|
580 */ |
|
581 virtual TBool RotateDisplay() const = 0; |
|
582 |
|
583 /** |
|
584 * To get Toolbar On/Off value |
|
585 */ |
|
586 virtual TInt ShowToolbarOnOff() const = 0; |
|
587 |
|
588 /** |
|
589 * To set Toolbar On/Off value |
|
590 */ |
|
591 virtual void SetToolbarOnOffL(TInt aCommand) = 0; |
|
592 |
|
593 /** |
|
594 * To get Toolbar Button 1 command value |
|
595 */ |
|
596 virtual TInt ShowToolbarButton1Cmd() const = 0; |
|
597 |
|
598 /** |
|
599 * To set Toolbar Button 1 command value |
|
600 */ |
|
601 virtual void SetToolbarButton1CmdL(TInt aCommand) = 0; |
|
602 |
|
603 /** |
|
604 * To get Toolbar Button 2 command value |
|
605 */ |
|
606 virtual TInt ShowToolbarButton2Cmd() const = 0; |
|
607 |
|
608 /** |
|
609 * To set Toolbar Button 2 command value |
|
610 */ |
|
611 virtual void SetToolbarButton2CmdL(TInt aCommand) = 0; |
|
612 |
|
613 /** |
|
614 * To get Toolbar Button 3 command value |
|
615 */ |
|
616 virtual TInt ShowToolbarButton3Cmd() const = 0; |
|
617 |
|
618 /** |
|
619 * To set Toolbar Button 3 command value |
|
620 */ |
|
621 virtual void SetToolbarButton3CmdL(TInt aCommand) = 0; |
|
622 |
|
623 /** |
|
624 * To get Toolbar Button 4 command value |
|
625 */ |
|
626 virtual TInt ShowToolbarButton4Cmd() const = 0; |
|
627 |
|
628 /** |
|
629 * To set Toolbar Button 4 command value |
|
630 */ |
|
631 virtual void SetToolbarButton4CmdL(TInt aCommand) = 0; |
|
632 |
|
633 /** |
|
634 * To get Toolbar Button 5 command value |
|
635 */ |
|
636 virtual TInt ShowToolbarButton5Cmd() const = 0; |
|
637 |
|
638 /** |
|
639 * To set Toolbar Button 5 command value |
|
640 */ |
|
641 virtual void SetToolbarButton5CmdL(TInt aCommand) = 0; |
|
642 |
|
643 /** |
|
644 * To get Toolbar Button 6 command value |
|
645 */ |
|
646 virtual TInt ShowToolbarButton6Cmd() const = 0; |
|
647 |
|
648 /** |
|
649 * To set Toolbar Button 6 command value |
|
650 */ |
|
651 virtual void SetToolbarButton6CmdL(TInt aCommand) = 0; |
|
652 |
|
653 /** |
|
654 * To get Toolbar Button 7 command value |
|
655 */ |
|
656 virtual TInt ShowToolbarButton7Cmd() const = 0; |
|
657 |
|
658 /** |
|
659 * To set Toolbar Button 7 command value |
|
660 */ |
|
661 virtual void SetToolbarButton7CmdL(TInt aCommand) = 0; |
|
662 |
|
663 /** |
|
664 * To get Shortcut Key 1 command value |
|
665 */ |
|
666 virtual TInt ShortcutKey1Cmd() const = 0; |
|
667 |
|
668 /** |
|
669 * To set Shortcut Key 1 command value |
|
670 */ |
|
671 virtual void SetShortcutKey1CmdL(TInt aCommand) = 0; |
|
672 |
|
673 /** |
|
674 * To get Shortcut Key 2 command value |
|
675 */ |
|
676 virtual TInt ShortcutKey2Cmd() const = 0; |
|
677 |
|
678 /** |
|
679 * To set Shortcut Key 2 command value |
|
680 */ |
|
681 virtual void SetShortcutKey2CmdL(TInt aCommand) = 0; |
|
682 |
|
683 /** |
|
684 * To get Shortcut Key 3 command value |
|
685 */ |
|
686 virtual TInt ShortcutKey3Cmd() const = 0; |
|
687 |
|
688 /** |
|
689 * To set Shortcut Key 3 command value |
|
690 */ |
|
691 virtual void SetShortcutKey3CmdL(TInt aCommand) = 0; |
|
692 |
|
693 /** |
|
694 * To get Shortcut Key 4 command value |
|
695 */ |
|
696 virtual TInt ShortcutKey4Cmd() const = 0; |
|
697 |
|
698 /** |
|
699 * To set Shortcut Key 4 command value |
|
700 */ |
|
701 virtual void SetShortcutKey4CmdL(TInt aCommand) = 0; |
|
702 |
|
703 /** |
|
704 * To get Shortcut Key 5 command value |
|
705 */ |
|
706 virtual TInt ShortcutKey5Cmd() const = 0; |
|
707 |
|
708 /** |
|
709 * To set Shortcut Key 5 command value |
|
710 */ |
|
711 virtual void SetShortcutKey5CmdL(TInt aCommand) = 0; |
|
712 |
|
713 /** |
|
714 * To get Shortcut Key 6 command value |
|
715 */ |
|
716 virtual TInt ShortcutKey6Cmd() const = 0; |
|
717 |
|
718 /** |
|
719 * To set Shortcut Key 6 command value |
|
720 */ |
|
721 virtual void SetShortcutKey6CmdL(TInt aCommand) = 0; |
|
722 |
|
723 /** |
|
724 * To get Shortcut Key 7 command value |
|
725 */ |
|
726 virtual TInt ShortcutKey7Cmd() const = 0; |
|
727 |
|
728 /** |
|
729 * To set Shortcut Key 7 command value |
|
730 */ |
|
731 virtual void SetShortcutKey7CmdL(TInt aCommand) = 0; |
|
732 |
|
733 /** |
|
734 * To get Shortcut Key 8 command value |
|
735 */ |
|
736 virtual TInt ShortcutKey8Cmd() const = 0; |
|
737 |
|
738 /** |
|
739 * To set Shortcut Key 8 command value |
|
740 */ |
|
741 virtual void SetShortcutKey8CmdL(TInt aCommand) = 0; |
|
742 |
|
743 /** |
|
744 * To get Shortcut Key 9 command value |
|
745 */ |
|
746 virtual TInt ShortcutKey9Cmd() const = 0; |
|
747 |
|
748 /** |
|
749 * To set Shortcut Key 9 command value |
|
750 */ |
|
751 virtual void SetShortcutKey9CmdL(TInt aCommand) = 0; |
|
752 |
|
753 /** |
|
754 * To get Shortcut Key 0 command value |
|
755 */ |
|
756 virtual TInt ShortcutKey0Cmd() const = 0; |
|
757 |
|
758 /** |
|
759 * To set Shortcut Key 0 command value |
|
760 */ |
|
761 virtual void SetShortcutKey0CmdL(TInt aCommand) = 0; |
|
762 |
|
763 /** |
|
764 * To get Shortcut Key Star command value |
|
765 */ |
|
766 virtual TInt ShortcutKeyStarCmd() const = 0; |
|
767 |
|
768 /** |
|
769 * To set Shortcut Key Star command value |
|
770 */ |
|
771 virtual void SetShortcutKeyStarCmdL(TInt aCommand) = 0; |
|
772 |
|
773 /** |
|
774 * To get Shortcut Key Hash command value |
|
775 */ |
|
776 virtual TInt ShortcutKeyHashCmd() const = 0; |
|
777 |
|
778 /** |
|
779 * To set Shortcut Key Hash command value |
|
780 */ |
|
781 virtual void SetShortcutKeyHashCmdL(TInt aCommand) = 0; |
|
782 |
|
783 /** |
|
784 * To get Shortcut Key for Qwerty command value |
|
785 */ |
|
786 virtual TInt ShortcutKeysForQwerty() const = 0; |
|
787 |
|
788 /** |
|
789 * Zoom Level minimum (percentage) value |
|
790 */ |
|
791 virtual inline TUint32 ZoomLevelMinimum() const = 0; |
|
792 |
|
793 /** |
|
794 * Zoom Level maximum (percentage) value |
|
795 */ |
|
796 virtual inline TUint32 ZoomLevelMaximum() const = 0; |
|
797 |
|
798 /** |
|
799 * Zoom Level default (percentage) value |
|
800 */ |
|
801 virtual inline TUint32 ZoomLevelDefault() const = 0; |
|
802 |
|
803 /** |
|
804 * Maximum Recent URLs to show |
|
805 */ |
|
806 virtual TInt MaxRecentUrls() const = 0; |
|
807 |
|
808 public: // observer support |
|
809 |
|
810 /** |
|
811 * Adds an observer to be notified about changes. Derived classes MUST |
|
812 * notify all observers when preferences changed! |
|
813 * @param anObserver Observer to be notified about events. |
|
814 */ |
|
815 virtual void AddObserverL( MPreferencesObserver* anObserver ) = 0; |
|
816 |
|
817 /** |
|
818 * Removes an observer. |
|
819 * @param anObserver The observer. |
|
820 */ |
|
821 virtual void RemoveObserver( MPreferencesObserver* anObserver ) = 0; |
|
822 |
|
823 /** |
|
824 * To flush share data key settings |
|
825 */ |
|
826 virtual void FlushSD() = 0; |
|
827 |
|
828 virtual void NotifyObserversL( TPreferencesEvent aEvent, |
|
829 TBrCtlDefs::TBrCtlSettings aSettingType ) = 0; |
|
830 }; |
|
831 |
|
832 #endif |
|
833 |
|
834 // End of File |