uiacceltk/hitchcock/ServerCore/Inc/alfwindowfxplugin.h
changeset 0 15bf7259bb7c
child 7 88b23e2e82e1
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __ALFWINDOWFXPLUGIN_H__
       
    19 #define __ALFWINDOWFXPLUGIN_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CAlfWindowManager;
       
    24 struct TWindowIdentifier;
       
    25 
       
    26 class CAlfWindowFxPlugin: public CBase
       
    27     {
       
    28     public:
       
    29     /** 
       
    30     * 2nd phase constructor. Called by framework to complete construction of a plugin. 
       
    31     * Must have base call from deriving class to complete construction
       
    32     */
       
    33     IMPORT_C virtual void ConstructL(const CAlfWindowManager& aMgr, TInt aAlfBufferFormat);
       
    34 
       
    35     IMPORT_C ~CAlfWindowFxPlugin();
       
    36     // not mandatory to implement
       
    37 	IMPORT_C virtual void DestroyWindow(const TWindowIdentifier& aId);
       
    38     IMPORT_C virtual void NewWindow(const TWindowIdentifier& aId);
       
    39     /** Synch message from client */    
       
    40     IMPORT_C virtual void HandleMessageL(const TDesC8& aMessage, TPtr8& aResponse);
       
    41 
       
    42     /** Asynch message from client */    
       
    43     IMPORT_C virtual void HandleMessageL(const TDesC8& aMessage, const RMessage2& aClientMessage);
       
    44 
       
    45     /** Cancel asynch message(s) from client */    
       
    46     IMPORT_C virtual void CancelMessage(TInt aMessageId);
       
    47 
       
    48     /**
       
    49     * Pure Virtuals
       
    50     */
       
    51     virtual void PrepareFrameL(TUint aEstimatedFrameInterval) = 0;
       
    52     virtual void WindowUpdated(TInt aWindowId, TInt aEventType) = 0;
       
    53     
       
    54     // utils
       
    55     IMPORT_C CAlfWindowManager* WindowManager();
       
    56 
       
    57     // For FW use
       
    58     TUint Priority(); 
       
    59 
       
    60     TUid* Identifier(); 
       
    61 
       
    62     private:
       
    63         class TAlfFxPluginData;
       
    64         TAlfFxPluginData* iData;
       
    65     
       
    66     };
       
    67 
       
    68 
       
    69 #endif