|
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 // Interface for Render Stage Display Resolution |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef WSDISPLAYCONTROL_H_ |
|
19 #define WSDISPLAYCONTROL_H_ |
|
20 |
|
21 /** |
|
22 @file |
|
23 @publishedpartner |
|
24 @released |
|
25 */ |
|
26 |
|
27 #include <graphics/displaycontrolbase.h> |
|
28 #include <graphics/wsgraphicdrawerinterface.h> |
|
29 |
|
30 class MWsDisplayControl: public MWsObjectProvider,public MDisplayControlBase |
|
31 { |
|
32 public: |
|
33 enum |
|
34 { |
|
35 KUidWsDisplayControl = 0x10286497, //To 0x1028649A |
|
36 ETypeId= KUidWsDisplayControl, |
|
37 EWsObjectInterfaceId= KUidWsDisplayControl |
|
38 }; |
|
39 public: |
|
40 /** |
|
41 * Asynchronous request to complete aStatus when a change of display is detected. |
|
42 * |
|
43 * The request is completed when the connectedness of the display changes, or when |
|
44 * the set of available resolutions changes. |
|
45 * |
|
46 * @param aStatus Asynchronous request status. |
|
47 */ |
|
48 virtual void NotifyOnDisplayChange(TRequestStatus& aStatus)=0; |
|
49 /** |
|
50 * Cancels a pending request to notify on display change. |
|
51 * |
|
52 * If there is a pending notification request, the status value will be set to |
|
53 * KErrCancelled and it will be completed. If there is no pending request for |
|
54 * notification, the call will simply return. |
|
55 */ |
|
56 virtual void NotifyOnDisplayChangeCancel()=0; |
|
57 /** |
|
58 * Asynchronous request to complete aStatus when a configuration change occurs. |
|
59 * |
|
60 * The request is completed when a new configuration has been set, either |
|
61 * explicitly or by a render stage. Earlier render stages and the Window Server |
|
62 * can use this to update their state. |
|
63 * |
|
64 * @param aStatus Asynchronous request status. |
|
65 */ |
|
66 virtual void NotifyOnConfigChange(TRequestStatus& aStatus)=0; |
|
67 /** |
|
68 * Cancels a pending request to notify on configuration change. |
|
69 * |
|
70 * If there is a pending notification request, the status value will be set to |
|
71 * KErrCancelled and it will be completed. If there is no pending request for |
|
72 * notification, the call will simply return. |
|
73 */ |
|
74 virtual void NotifyOnConfigChangeCancel()=0; |
|
75 }; |
|
76 |
|
77 #endif /*WSDISPLAYCONTROL_H_*/ |