os/graphics/windowing/windowserverplugins/openwfc/inc/rsdisplaychangeao.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2008-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 RS_DISP_CHANGE_NOTIFY
    17 #define RS_DISP_CHANGE_NOTIFY
    18 
    19 #include <e32base.h>
    20 #include <graphics/wsdisplaycontrol.h>
    21 
    22 class CDisplayPolicy;
    23 class CRsDisplayChangeNotifier : public CActive
    24 	{
    25 	public:
    26 		static CRsDisplayChangeNotifier* NewL(MWsDisplayControl* aNextLevelInterface, CDisplayPolicy* aDisplayPolicy);
    27 		void IssueNotificationRequest();
    28 		void CancelNotificationRequest();
    29 		void RegisterActiveStatus(TRequestStatus &aStatus);
    30 		~CRsDisplayChangeNotifier();
    31 	protected:
    32 		virtual void RunL();
    33 		virtual void DoCancel();
    34 	private:
    35 		CRsDisplayChangeNotifier(MWsDisplayControl* aNextLevelInterface, CDisplayPolicy* aDisplayPolicy);
    36 		
    37 	private:
    38 		TRequestStatus* iWsStatus;
    39 		MWsDisplayControl* iNextLevelInterface;
    40 		CDisplayPolicy* iDisplayPolicy;
    41 	};
    42 
    43 class CRsConfigChangeNotifier : public CActive
    44 	{
    45 	public:
    46 		static CRsConfigChangeNotifier* NewL(MWsDisplayControl* aNextLevelInterface);
    47 		void IssueNotificationRequest();
    48 		void CancelNotificationRequest();
    49 		void RegisterActiveStatus(TRequestStatus &aStatus);
    50 		~CRsConfigChangeNotifier();
    51 	protected:
    52 		virtual void RunL();
    53 		virtual void DoCancel();
    54 	private:
    55 		CRsConfigChangeNotifier(MWsDisplayControl* aNextLevelInterface);
    56 		
    57 	private:
    58 		TRequestStatus* iWsStatus;
    59 		MWsDisplayControl* iNextLevelInterface;
    60 	};
    61 
    62 #endif