epoc32/include/hlpzoom.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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".
     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