sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef RS_DISP_CHANGE_NOTIFY
|
sl@0
|
17 |
#define RS_DISP_CHANGE_NOTIFY
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <e32base.h>
|
sl@0
|
20 |
#include <graphics/wsdisplaycontrol.h>
|
sl@0
|
21 |
|
sl@0
|
22 |
class CDisplayPolicy;
|
sl@0
|
23 |
class CRsDisplayChangeNotifier : public CActive
|
sl@0
|
24 |
{
|
sl@0
|
25 |
public:
|
sl@0
|
26 |
static CRsDisplayChangeNotifier* NewL(MWsDisplayControl* aNextLevelInterface, CDisplayPolicy* aDisplayPolicy);
|
sl@0
|
27 |
void IssueNotificationRequest();
|
sl@0
|
28 |
void CancelNotificationRequest();
|
sl@0
|
29 |
void RegisterActiveStatus(TRequestStatus &aStatus);
|
sl@0
|
30 |
~CRsDisplayChangeNotifier();
|
sl@0
|
31 |
protected:
|
sl@0
|
32 |
virtual void RunL();
|
sl@0
|
33 |
virtual void DoCancel();
|
sl@0
|
34 |
private:
|
sl@0
|
35 |
CRsDisplayChangeNotifier(MWsDisplayControl* aNextLevelInterface, CDisplayPolicy* aDisplayPolicy);
|
sl@0
|
36 |
|
sl@0
|
37 |
private:
|
sl@0
|
38 |
TRequestStatus* iWsStatus;
|
sl@0
|
39 |
MWsDisplayControl* iNextLevelInterface;
|
sl@0
|
40 |
CDisplayPolicy* iDisplayPolicy;
|
sl@0
|
41 |
};
|
sl@0
|
42 |
|
sl@0
|
43 |
class CRsConfigChangeNotifier : public CActive
|
sl@0
|
44 |
{
|
sl@0
|
45 |
public:
|
sl@0
|
46 |
static CRsConfigChangeNotifier* NewL(MWsDisplayControl* aNextLevelInterface);
|
sl@0
|
47 |
void IssueNotificationRequest();
|
sl@0
|
48 |
void CancelNotificationRequest();
|
sl@0
|
49 |
void RegisterActiveStatus(TRequestStatus &aStatus);
|
sl@0
|
50 |
~CRsConfigChangeNotifier();
|
sl@0
|
51 |
protected:
|
sl@0
|
52 |
virtual void RunL();
|
sl@0
|
53 |
virtual void DoCancel();
|
sl@0
|
54 |
private:
|
sl@0
|
55 |
CRsConfigChangeNotifier(MWsDisplayControl* aNextLevelInterface);
|
sl@0
|
56 |
|
sl@0
|
57 |
private:
|
sl@0
|
58 |
TRequestStatus* iWsStatus;
|
sl@0
|
59 |
MWsDisplayControl* iNextLevelInterface;
|
sl@0
|
60 |
};
|
sl@0
|
61 |
|
sl@0
|
62 |
#endif
|