tvout/tvoutengine/inc/glxhdmicontainer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:38:23 +0300
changeset 36 6481344a6d67
parent 26 c499df2dbb33
child 52 a3a4c0de738e
child 55 fb37077c270f
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* 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_ */