1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
23 class MGraphicsDeviceMap;
26 ///////////////////////////////////////////////////////////////////////////////////////
27 // ----> MHlpZoomStateManager (header)
28 ///////////////////////////////////////////////////////////////////////////////////////
29 class MHlpZoomStateManager
38 EHlpZoomStateSmall = -1,
39 EHlpZoomStateNormal = 0,
40 EHlpZoomStateLarge = 1
43 public: // From MHlpZoomStateManager
44 virtual void SetZoomState(THlpZoomState aState) = 0;
45 virtual THlpZoomState ZoomState() const = 0;
47 public: // From MHlpZoomStateManager
48 virtual MGraphicsDeviceMap& ZoomDeviceMap() const = 0;
49 virtual TInt ZoomFactorValueForZoomState(THlpZoomState aState) const = 0;
54 ///////////////////////////////////////////////////////////////////////////////////////
55 // ----> MHlpZoomStateObserver (header)
56 ///////////////////////////////////////////////////////////////////////////////////////
57 class MHlpZoomStateObserver
63 public: // From MHlpZoomStateObserver
64 virtual void HandleZoomStateChangedL(MHlpZoomStateManager::THlpZoomState aZoomState) = 0;
69 ///////////////////////////////////////////////////////////////////////////////////////
70 // ----> MHlpZoomStateChangeNotifier (header)
71 ///////////////////////////////////////////////////////////////////////////////////////
72 class MHlpZoomStateChangeNotifier : public MHlpZoomStateManager
78 public: // From MHlpZoomStateChangeNotifier
79 virtual void RegisterForZoomStateChangeNotificationsL(MHlpZoomStateObserver& aObserver) = 0;
80 virtual void RegisterForZoomStateChangeNotificationsCancel(MHlpZoomStateObserver& aObserver) = 0;