photosgallery/viewframework/tvout/inc/glxhdmicontainer.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Handles & propogates UI state change notifications.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLXHDMICONTAINER_H_
       
    19 #define GLXHDMICONTAINER_H_
       
    20 
       
    21 #include <coecntrl.h>
       
    22 #include "glxhdmisurfaceupdater.h"
       
    23 
       
    24 class CGlxHdmiContainer : public CCoeControl, public MGlxGenCallback
       
    25     {
       
    26 public:
       
    27     /*
       
    28      * NewLC 
       
    29      */
       
    30     static CGlxHdmiContainer* NewL(const TRect& aRect);
       
    31     
       
    32     /*
       
    33      * Destructor 
       
    34      */
       
    35     ~CGlxHdmiContainer();
       
    36     
       
    37     /*
       
    38      * Get window instance 
       
    39      */
       
    40     RWindow* GetWindow();
       
    41 
       
    42 private:// from MGlxGenCallback
       
    43     void DoGenCallback();
       
    44     
       
    45 private: // from CCoeControl
       
    46     void Draw();
       
    47 
       
    48 private:
       
    49     /*
       
    50      * Ctor 
       
    51      */
       
    52     CGlxHdmiContainer(const TRect& aRect);
       
    53 
       
    54     /*
       
    55      * ConstructL()
       
    56      */
       
    57     void ConstructL();
       
    58     
       
    59     /*
       
    60      * Create window for HDMI
       
    61      * Create a screendevice  
       
    62      */
       
    63     void CreateHdmiWindowL();
       
    64     
       
    65 private:
       
    66     TRect iRect;
       
    67     RWsSession iSession;
       
    68     RWindow             iWsWindow;
       
    69     CWsScreenDevice* iScreenDevice;    
       
    70     RWindowGroup        iWsWindowGroup;
       
    71     CWindowGc*          iWindowGc;
       
    72     TInt                iWsWindowGroupID;
       
    73     };
       
    74 
       
    75 #endif /* GLXHDMICONTAINER_H_ */