uiacceltk/hitchcock/ServerCore/Inc/alfsrvvisualowner.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c)  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:   Alf server visual owner
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_ALFSRVVISUALOWNER_H
       
    21 #define C_ALFSRVVISUALOWNER_H
       
    22 
       
    23 #include <uiacceltk/HuiVisual.h>
       
    24 
       
    25 class CAlfAppSrvSessionBase;
       
    26 
       
    27 /**
       
    28  *  Alf server visual owner
       
    29  *
       
    30  *  The alfred component that owns an HUI visual.
       
    31  *
       
    32  *  @since S60 v3.2
       
    33  */
       
    34 NONSHARABLE_CLASS(CAlfSrvVisualOwner) : public CBase, public MHuiVisualOwner
       
    35     {
       
    36     
       
    37 public:
       
    38 
       
    39     static CAlfSrvVisualOwner* NewL( 
       
    40         CAlfAppSrvSessionBase& aSession,
       
    41         MHuiVisualOwner* aRealOwner );
       
    42 
       
    43     virtual ~CAlfSrvVisualOwner();
       
    44 
       
    45     /**
       
    46      * ?description
       
    47      *
       
    48      * @since S60 ?S60_version
       
    49      * @param ?arg1 ?description
       
    50      * @param ?arg2 ?description
       
    51      * @return ?description
       
    52      */
       
    53     MHuiVisualOwner* RealOwner();
       
    54     
       
    55     void SetVisualLayoutUpdatedNotificationId( TInt aNotificationId );
       
    56 
       
    57 protected:
       
    58 
       
    59     CHuiEnv& Env() const;
       
    60     CHuiControlGroup* ControlGroup() const;
       
    61     MHuiEventHandler* EventHandler();
       
    62     void AppendL(CHuiVisual* aVisual);
       
    63     void Remove(CHuiVisual* aVisual);
       
    64     void VisualDestroyed(CHuiVisual& aVisual);
       
    65     void VisualLayoutUpdated(CHuiVisual& aVisual);
       
    66     void VisualPrepareDrawFailed(CHuiVisual& aVisual, TInt aErrorCode);
       
    67 
       
    68 private:
       
    69 
       
    70     CAlfSrvVisualOwner( 
       
    71         CAlfAppSrvSessionBase& aSession,
       
    72         MHuiVisualOwner* aRealOwner );
       
    73 
       
    74     void ConstructL();
       
    75 
       
    76 private: // data
       
    77 
       
    78     CAlfAppSrvSessionBase& iSession;
       
    79     MHuiVisualOwner* iRealOwner;
       
    80     TInt iVisualLayoutUpdatedNotificationId;
       
    81     };
       
    82 
       
    83 #endif // C_ALFSRVVISUALOWNER_H