symhelp/helpmodel/inc/HlpZoom.h
changeset 0 1f04cf54edd8
equal deleted inserted replaced
-1:000000000000 0:1f04cf54edd8
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __HLPZOOM_H__
       
    17 #define __HLPZOOM_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32std.h>
       
    21 
       
    22 // Classes referenced
       
    23 class MGraphicsDeviceMap;
       
    24 
       
    25 
       
    26 //
       
    27 // ----> MHlpZoomStateManager (header)
       
    28 //
       
    29 class MHlpZoomStateManager
       
    30 /**
       
    31 @internalComponent
       
    32 @released
       
    33 */
       
    34 	{
       
    35 public: // Zoom state
       
    36 	enum THlpZoomState
       
    37 		{
       
    38 		EHlpZoomStateSmall = -1,
       
    39 		EHlpZoomStateNormal = 0,
       
    40 		EHlpZoomStateLarge = 1
       
    41 		};
       
    42 
       
    43 public: // From MHlpZoomStateManager
       
    44 	virtual void SetZoomState(THlpZoomState aState) = 0;
       
    45 	virtual THlpZoomState ZoomState() const = 0;
       
    46 
       
    47 public: // From MHlpZoomStateManager
       
    48 	virtual MGraphicsDeviceMap& ZoomDeviceMap() const = 0;
       
    49 	virtual TInt ZoomFactorValueForZoomState(THlpZoomState aState) const = 0;
       
    50 	};
       
    51 
       
    52 
       
    53 
       
    54 //
       
    55 // ----> MHlpZoomStateObserver (header)
       
    56 //
       
    57 class MHlpZoomStateObserver
       
    58 /**
       
    59 @internalComponent
       
    60 @released
       
    61 */
       
    62 	{
       
    63 public: // From MHlpZoomStateObserver
       
    64 	virtual void HandleZoomStateChangedL(MHlpZoomStateManager::THlpZoomState aZoomState) = 0;
       
    65 	};
       
    66 
       
    67 
       
    68 
       
    69 //
       
    70 // ----> MHlpZoomStateChangeNotifier (header)
       
    71 //
       
    72 class MHlpZoomStateChangeNotifier : public MHlpZoomStateManager
       
    73 /**
       
    74 @internalComponent
       
    75 @released
       
    76 */
       
    77 	{
       
    78 public: // From MHlpZoomStateChangeNotifier
       
    79 	virtual void RegisterForZoomStateChangeNotificationsL(MHlpZoomStateObserver& aObserver) = 0;
       
    80 	virtual void RegisterForZoomStateChangeNotificationsCancel(MHlpZoomStateObserver& aObserver) = 0;
       
    81 	};
       
    82 
       
    83 #endif