uiacceltk/hitchcock/CommonInc/alfdrawerinternal.h
branchRCL_3
changeset 7 88b23e2e82e1
equal deleted inserted replaced
6:10534483575f 7:88b23e2e82e1
       
     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:   Internal interface for CAlfDrawer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ALFDRAWERINTERNAL_H
       
    21 #define ALFDRAWERINTERNAL_H
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 /**
       
    26  * Interface to get screen & parameters
       
    27  */
       
    28 class MAlfDrawerScreenInterface
       
    29     {
       
    30 public:
       
    31     virtual TInt GetSizeAndRotation(TSize& aSize, TInt& aRotation) = 0;
       
    32     virtual TInt ReadPixels(CFbsBitmap* aBitmap) = 0;
       
    33     };
       
    34 
       
    35 /**
       
    36  * Internal drawer interface.
       
    37  */
       
    38 NONSHARABLE_CLASS( AlfDrawerInternal )
       
    39     {
       
    40 public:
       
    41     IMPORT_C static TInt CopyScreenToBitmap(
       
    42         MAlfDrawerScreenInterface* aInterface, 
       
    43         CFbsBitmap* aBitmap, 
       
    44         const TRect& aRect );
       
    45     };
       
    46     
       
    47 #endif // ALFDRAWERINTERNAL_H