tvout/tvoutengine/inc/glxhdmicontainer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 12:51:42 +0300
changeset 33 1ee2af37811f
parent 26 c499df2dbb33
child 36 6481344a6d67
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    Handles & propogates UI state change notifications.
*
*/

#ifndef GLXHDMICONTAINER_H_
#define GLXHDMICONTAINER_H_

#include <coecntrl.h>
#include "glxhdmisurfaceupdater.h"

class CGlxHdmiContainer : public CCoeControl, public MGlxGenCallback
    {
public:
    /*
     * NewLC 
     */
    static CGlxHdmiContainer* NewL(const TRect& aRect);
    
    /*
     * Destructor 
     */
    ~CGlxHdmiContainer();
    
    /*
     * Get window instance 
     */
    RWindow* GetWindow();

private:// from MGlxGenCallback
    void DoGenCallback();
    
private: // from CCoeControl
    void Draw();

private:
    /*
     * Ctor 
     */
    CGlxHdmiContainer(const TRect& aRect);

    /*
     * ConstructL()
     */
    void ConstructL();
    
    /*
     * Create window for HDMI
     * Create a screendevice  
     */
    void CreateHdmiWindowL();
    
private:
    TRect iRect;
    RWsSession iSession;
    RWindow             iWsWindow;
    CWsScreenDevice* iScreenDevice;    
    RWindowGroup        iWsWindowGroup;
    CWindowGc*          iWindowGc;
    TInt                iWsWindowGroupID;
    };

#endif /* GLXHDMICONTAINER_H_ */