sl@0: /* sl@0: * Copyright (c) 2008 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: sl@0: sl@0: #ifndef __NGAPOSTPROCSESSIONMANAGER_H__ sl@0: #define __NGAPOSTPROCSESSIONMANAGER_H__ sl@0: sl@0: #include //TSurfaceId sl@0: #include //RSurfaceManager sl@0: #include sl@0: #include sl@0: sl@0: class RSurfaceUpdateSession; sl@0: class MNGAPostProcSessionManagerObserver; sl@0: class CNGAPostProcNotifier; sl@0: sl@0: class CNGAPostProcSessionManager: public CBase sl@0: { sl@0: friend class CNGAPostProcNotifier; sl@0: sl@0: public: sl@0: // === Constructors and destructor === sl@0: /** sl@0: * Two-phased constructor. sl@0: * @return pointer to an instance of CNGAPostProcSessionManager sl@0: */ sl@0: static CNGAPostProcSessionManager* NewL(); sl@0: sl@0: /** sl@0: * Destructor. sl@0: */ sl@0: ~CNGAPostProcSessionManager(); sl@0: sl@0: public: sl@0: sl@0: /** sl@0: submits buffer to GCE for displaying. sl@0: sl@0: @param "aBufId" "ID of the buffer that needs to be displayed." sl@0: @pre "This method can only be called before the hwdevice has been initialized with Initialize()." sl@0: */ sl@0: TInt PostPicture(const TSurfaceId& aSurfaceId, TInt aBufId, TBool aNotifyRequired); sl@0: sl@0: sl@0: sl@0: /** sl@0: Removes display from the system, if it is already existing. sl@0: sl@0: @param "aDisplayId" "ID of the display that needs to be removed from the system" sl@0: */ sl@0: void HandleBufferRelease(TInt aBufId, TInt aStatus); sl@0: sl@0: /** sl@0: Removes display from the system, if it is already existing. sl@0: sl@0: @param "aDisplayId" "ID of the display that needs to be removed from the system" sl@0: */ sl@0: void SetObserver(MNGAPostProcSessionManagerObserver& aObserver); sl@0: sl@0: sl@0: void CreateNotifierL(TInt aNumSurfaceBuffers); sl@0: sl@0: void CancelNotifiers(); sl@0: sl@0: protected: sl@0: CNGAPostProcSessionManager(); sl@0: /** sl@0: * Symbian 2nd phase constructor . sl@0: */ sl@0: void ConstructL(); sl@0: sl@0: private: sl@0: /** sl@0: Cancels Surface Update Notifications sl@0: */ sl@0: void CancelUpdate(); sl@0: sl@0: private: sl@0: sl@0: RSurfaceUpdateSession* iSurfaceUpdateSession; sl@0: MNGAPostProcSessionManagerObserver* iObserver; sl@0: RPointerArray iAOList; sl@0: }; sl@0: sl@0: #endif //__NGAPOSTPROCSESSIONMANAGER_H__