uiacceltk/hitchcock/plugins/alfcrpplugin/inc/alfcrpplugin.h
branchRCL_3
changeset 3 d8a3531bc6b8
equal deleted inserted replaced
0:15bf7259bb7c 3:d8a3531bc6b8
       
     1 /*
       
     2 * Copyright (c) 2010 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 CRP ECOM plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AFLCRPPLUGIN_H
       
    20 #define AFLCRPPLUGIN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <w32std.h>
       
    24 #include <graphics/wsgraphicdrawerinterface.h>
       
    25 #include <graphics/wsgraphicdrawer.h>
       
    26 
       
    27 /**
       
    28  * Alf window server ECOM plugin class.
       
    29  */
       
    30 NONSHARABLE_CLASS( CAlfCrpPlugin ) : public CWsGraphicDrawer
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Creates a new instance of the plugin.
       
    36      * @return Created instance.
       
    37      */ 
       
    38     static CWsGraphicDrawer* CreateL();
       
    39     
       
    40     /**
       
    41      * Destructor.
       
    42      */ 
       
    43     ~CAlfCrpPlugin();
       
    44     
       
    45 private:
       
    46 
       
    47     /**
       
    48      * From CWsGraphicDrawer.
       
    49      *
       
    50      * @param aGc
       
    51      * @param aRect
       
    52      * @param aData
       
    53      */ 
       
    54     void DoDraw( MWsGc& aGc, const TRect& aRect, const TDesC8& aData ) const;
       
    55     
       
    56     /**
       
    57      * Handles message from PreviewProviderClient.
       
    58      *
       
    59      * @param aData Message data.
       
    60      */ 
       
    61     void HandleMessage( const TDesC8& aData );
       
    62 
       
    63     /**
       
    64      * 2nd phase constructor.
       
    65      *
       
    66      * @param aEnv
       
    67      * @param aId
       
    68      * @param aOwner
       
    69      * @param aData
       
    70      */     
       
    71     void ConstructL( MWsGraphicDrawerEnvironment& aEnv, 
       
    72                      const TGraphicDrawerId& aId, 
       
    73                      MWsClient& aOwner, 
       
    74                      const TDesC8& aData );   
       
    75 
       
    76 private:
       
    77     /**
       
    78      * Handles message from PreviewProviderClient.
       
    79      *
       
    80      * @param aData Message data.
       
    81      */     
       
    82     void DoHandleMessageL( const TDesC8& aData );
       
    83     
       
    84     };
       
    85 
       
    86 #endif // AFLCRPPLUGIN_H
       
    87 
       
    88 // End of file