sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: //
sl@0: 
sl@0: #ifndef DISPCTRL_CLIENT_H_
sl@0: #define DISPCTRL_CLIENT_H_
sl@0: 
sl@0: #include <graphics/displaycontrolbase.h>
sl@0: 
sl@0: /**
sl@0:  * Window Server client interface for display control.
sl@0:  * 
sl@0:  * All functions in MDisplayControlBase will automatically flush the client-server
sl@0:  * session buffer as part of their behavior.
sl@0:  * 
sl@0:  * Setting the display configuration successfully shall cause the screen mode
sl@0:  * index to change to one of the last two entries (dependent on rotation) and that
sl@0:  * mode's size information shall be updated as necessary.
sl@0:  * 
sl@0:  * @publishedPartner
sl@0:  * @prototype
sl@0:  */
sl@0: class MDisplayControl : public MDisplayControlBase
sl@0: 	{
sl@0: public:
sl@0: 	enum	
sl@0: 		{
sl@0: 		KUidDisplayControl =  0x10286499, 	  //To    0x1028649A
sl@0: 		ETypeId=	 KUidDisplayControl 
sl@0: 		};
sl@0: public:
sl@0: 	/** 
sl@0: 	 * Returns whether changes in the display will trigger an EEventDisplayChanged 
sl@0: 	 * event to be issued.
sl@0: 	 *
sl@0: 	 * Events will be triggered configuration changes that have taken place on 
sl@0: 	 * the display, when a display has been connected / disconnected (if it can be 
sl@0: 	 * detected), and when the available resolutions change.
sl@0: 	 *
sl@0: 	 * This function always causes a flush of the window server buffer.
sl@0: 	 *	
sl@0: 	 * @return ETrue if display change events are enabled, EFalse otherwise
sl@0: 	 */
sl@0: 	virtual TBool DisplayChangeEventsEnabled() const =0;
sl@0: 	/** 
sl@0: 	 * Determines whether changes in the display will trigger an EEventDisplayChanged 
sl@0: 	 * event to be issued.
sl@0: 	 * 
sl@0: 	 * @see DisplayChangeEventsEnabled
sl@0: 	 * 
sl@0: 	 * @param aEnable ETrue to enable display change events, EFalse to disable them
sl@0: 	 */	
sl@0: 	virtual void EnableDisplayChangeEvents(TBool aEnable) =0;
sl@0: 	};
sl@0: 
sl@0: 
sl@0: #endif /*DISPCTRL_CLIENT_H_*/