|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NGAPOSTPROCSESSIONMANAGER_H__ |
|
20 #define __NGAPOSTPROCSESSIONMANAGER_H__ |
|
21 |
|
22 #include <graphics/surface.h> //TSurfaceId |
|
23 #include <graphics/surfacemanager.h> //RSurfaceManager |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 class RSurfaceUpdateSession; |
|
28 class MNGAPostProcSessionManagerObserver; |
|
29 class CNGAPostProcNotifier; |
|
30 |
|
31 class CNGAPostProcSessionManager |
|
32 { |
|
33 |
|
34 public: |
|
35 // === Constructors and destructor === |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * @return pointer to an instance of CNGAPostProcSessionManager |
|
39 */ |
|
40 static CNGAPostProcSessionManager* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CNGAPostProcSessionManager(); |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 submits buffer to GCE for displaying. |
|
51 |
|
52 @param "aBufId" "ID of the buffer that needs to be displayed." |
|
53 @pre "This method can only be called before the hwdevice has been initialized with Initialize()." |
|
54 */ |
|
55 void PostPicture(const TSurfaceId& aSurfaceId, TInt aBufId, TInt aNumOfBuf, TBool aNotifyRequired); |
|
56 |
|
57 /** |
|
58 Sets the device output format. |
|
59 */ |
|
60 void CancelUpdate(); |
|
61 |
|
62 /** |
|
63 Removes display from the system, if it is already existing. |
|
64 |
|
65 @param "aDisplayId" "ID of the display that needs to be removed from the system" |
|
66 */ |
|
67 void HandleBufferRelease(TInt aBufId, TInt aStatus); |
|
68 |
|
69 /** |
|
70 Removes display from the system, if it is already existing. |
|
71 |
|
72 @param "aDisplayId" "ID of the display that needs to be removed from the system" |
|
73 */ |
|
74 void SetObserver(MNGAPostProcSessionManagerObserver& aObserver); |
|
75 |
|
76 protected: |
|
77 CNGAPostProcSessionManager(); |
|
78 /** |
|
79 * Symbian 2nd phase constructor . |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 |
|
84 private: |
|
85 |
|
86 RSurfaceUpdateSession* iSurfaceUpdateSession; |
|
87 MNGAPostProcSessionManagerObserver* iObserver; |
|
88 RArray<CNGAPostProcNotifier*> iAOList; |
|
89 }; |
|
90 |
|
91 #endif //__NGAPOSTPROCSESSIONMANAGER_H__ |