uiacceltk/hitchcock/ServerCore/Inc/alfscreen.h
changeset 0 15bf7259bb7c
child 3 d8a3531bc6b8
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     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:   Server declaration, internal for Nokia
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __ALF_SCREEN_H__
       
    21 #define __ALF_SCREEN_H__
       
    22 
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <uiacceltk/HuiDisplay.h>
       
    26 #include <uiacceltk/HuiTextVisual.h>
       
    27 #include "alfshareddisplaycoecontrol.h"
       
    28 
       
    29 enum TAlfControlGroupRole
       
    30     {
       
    31     /** Unknown */
       
    32     EAlfUnknownContainer,
       
    33     
       
    34     /** Alf application control group */
       
    35     EAlfSessionContainer,
       
    36     
       
    37     /** WSERV window group */
       
    38     EAlfWindowGroupContainer,
       
    39     
       
    40     /** WSERV floating sprite group */
       
    41     EAlfWindowFloatingSpriteContainer,
       
    42 
       
    43     /** Group for showing effects */
       
    44     EAlfFullScreenEffectContainer,
       
    45     };
       
    46 
       
    47 NONSHARABLE_CLASS( TAlfControlGroupEntry )  
       
    48     {
       
    49 public:
       
    50     TAlfControlGroupEntry() :    
       
    51         iControlGroup(NULL),
       
    52         iWindowGroupNodeId(0),
       
    53         iClientWindowGroupId(0),
       
    54         iScreenNumber(0),
       
    55         iSecureId(0)
       
    56             {
       
    57             }
       
    58 
       
    59     /** Control group which represents a window group */
       
    60     CHuiControlGroup* iControlGroup;
       
    61     
       
    62     /** Window group node id, internal */
       
    63     TInt iWindowGroupNodeId; 
       
    64     
       
    65     /** Window group id, external id seen e.g. by the application using wserv */
       
    66     TInt iClientWindowGroupId;
       
    67     
       
    68     TUint8 iScreenNumber;
       
    69     
       
    70     TInt32 iSecureId;
       
    71     };
       
    72 
       
    73 
       
    74 NONSHARABLE_CLASS(CAlfScreen) : public CBase
       
    75 	    {
       
    76 	public:
       
    77 	        
       
    78         /**
       
    79          * Constructor
       
    80          */
       
    81 	    CAlfScreen(); 
       
    82 
       
    83         /**
       
    84          * 2nd phase construction
       
    85          */
       
    86 	    void ConstructL(TInt aScreenNum, MHuiDisplayRefreshObserver& aObserver, CHuiEnv& aHuiEnv, CAlfSharedDisplayCoeControl* aSharedCoeControl);
       
    87         void ConstructL(TInt aScreenNum, MHuiDisplayRefreshObserver& aObserver, CHuiEnv& aHuiEnv, RWindow* aWindow);
       
    88         void CommonConstructL( MHuiDisplayRefreshObserver& aObserver, CHuiEnv& aHuiEnv);
       
    89         /**
       
    90          * Destructor
       
    91          */
       
    92 	    ~CAlfScreen(); 
       
    93 
       
    94         /**
       
    95          * Returns the size of the screen in pixels
       
    96          * @return Screesize in pixels
       
    97          */
       
    98         TSize Size() const;
       
    99         
       
   100         /**
       
   101          * Sets a flag which causes full visual tree visibility scan to happen later.
       
   102          */
       
   103         void SetVisualTreeVisibilityChanged(TBool aChanged);
       
   104 
       
   105         /**
       
   106          * Gets a flag which causes full visual tree visibility scan to happen later.
       
   107          */
       
   108         TBool IsVisualTreeVisibilityChanged();
       
   109 
       
   110 	public:
       
   111 	        	   
       
   112 	    RArray<TAlfControlGroupEntry> iControlGroups;
       
   113 	  	CAlfSharedDisplayCoeControl* iCoeControl; // owned
       
   114 	   
       
   115 	   	CHuiDisplay* iDisplay; 
       
   116 	    CHuiControlGroup* iFloatingSpriteControlGroup; 
       
   117 	    CHuiControlGroup* iFullscreenEffectControlGroup; 
       
   118 	    
       
   119 	    TBool iVisualTreeVisibilityChanged;
       
   120 	    TInt iScreenNum;
       
   121 	    CFbsBitmap* iSwRenderingTarget;	    
       
   122 #ifdef SYMBIAN_BUILD_GCE	    
       
   123 	    CHuiTextVisual* iFPSText;
       
   124 #endif
       
   125 	    };
       
   126          
       
   127 #endif // __ALF_SCREEN_H__