photosgallery/slideshow/engine/tsrc/stubs/tmshweventobserver_adapter.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:   Stub file for observer of event
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __TMGLXVISUALLIST_ADAPTER_H__
       
    22 #define __TMGLXVISUALLIST_ADAPTER_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include "shwevent.h"
       
    26 #include "shweventobserver.h"
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 
       
    32 //	CLASS DEFINITION
       
    33 class MMShwEventObserver_Observer
       
    34 	{
       
    35 	public:		// Enums
       
    36 
       
    37 		enum TMShwEventObserverMethodId
       
    38 			{
       
    39 			E_NotCalled,
       
    40 			E_void_NotifyL
       
    41 			};
       
    42 
       
    43 	public:     // Destructor
       
    44 		
       
    45 		/**
       
    46 		 * Destructor
       
    47 		 */
       
    48 		virtual ~MMShwEventObserver_Observer() {};
       
    49 		
       
    50 	public:     // Abstract methods
       
    51 	
       
    52 		virtual void MShwEventObserver_MethodCalled( TMShwEventObserverMethodId aMethodId, MShwEvent* aEvent ) = 0;
       
    53 	
       
    54 	};
       
    55 
       
    56 //  CLASS DEFINITION
       
    57 /**
       
    58  * Adapter for event controllers
       
    59  * for testing purposes
       
    60  */
       
    61 class TMShwEventObserver_Adapter
       
    62 	: public MShwEventObserver
       
    63 	{
       
    64 	public:     // Constructors and destructors
       
    65 
       
    66 		/**
       
    67 		 * Construction
       
    68 		 */
       
    69 		TMShwEventObserver_Adapter( MMShwEventObserver_Observer* aObserver, MShwEventObserver* aAdaptee );
       
    70 
       
    71 	public:	// from MShwEventObserver
       
    72 
       
    73 		void NotifyL( MShwEvent* aEvent );
       
    74 
       
    75 	private:    // Data
       
    76 
       
    77 		MMShwEventObserver_Observer* iMMShwEventObserver_Observer;
       
    78 		MShwEventObserver* iMShwEventObserver;
       
    79 
       
    80 	};
       
    81 
       
    82 #endif      //  __TMGLXVISUALLIST_ADAPTER_H__
       
    83 
       
    84 // End of file