AppInc/DrawableInterface.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     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: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DRAWABLE_INTERFACE_H
       
    19 #define DRAWABLE_INTERFACE_H
       
    20 
       
    21 /*--------------------------------------------------------------------------*/
       
    22 
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 /*--------------------------------------------------------------------------*/
       
    28 
       
    29 class CDrawableInterface : public CBase
       
    30 	{
       
    31 	protected:
       
    32 		// Constructor
       
    33 		CDrawableInterface();
       
    34 		//virtual void ConstructL(void) =0;
       
    35 	public:
       
    36 		// Destructor
       
    37 		virtual ~CDrawableInterface();
       
    38 		
       
    39 		// Pure virtual Update and Draw functions
       
    40 		
       
    41 		// Update, returns true if screen should be redrawn
       
    42 		virtual TBool Update(void) =0;
       
    43 		// Draw, takes screen size as a argument
       
    44 		virtual void Draw(const TSize &aScreenSize) =0;
       
    45 	};
       
    46 
       
    47 /*--------------------------------------------------------------------------*/
       
    48 
       
    49 #endif // DRAWABLE_INTERFACE_H