photosgallery/slideshow/engine/controlsrc/shweventpublisherbase.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:    The base class for event publishers
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CSHWEVENTPUBLISHERBASE_H__
       
    22 #define __CSHWEVENTPUBLISHERBASE_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 #include "shweventpublisher.h"
       
    29 
       
    30 // Forward declarations
       
    31 class MShwEvent;
       
    32 class MShwEventQueue;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37  * CShwEventPublisherBase
       
    38  * @author Kimmo Hoikka
       
    39  */
       
    40 NONSHARABLE_CLASS( CShwEventPublisherBase ) : public CBase, public MShwEventPublisher
       
    41 	{
       
    42 	public: // Constructors and destructor
       
    43 
       
    44 		/**
       
    45 		 * Constructor
       
    46 		 */
       
    47 		CShwEventPublisherBase();
       
    48 
       
    49 		/**
       
    50 		 * Destructor.
       
    51 		 */
       
    52 		~CShwEventPublisherBase();
       
    53 
       
    54 	public: // New API
       
    55 
       
    56 		/**
       
    57 		 * This method can be used by the deriving classes to send events to the queue
       
    58 		 * @param aEvent, the event to be sent to the queue
       
    59 		 */
       
    60 		void SendEventL( MShwEvent* aEvent );
       
    61 	
       
    62 	public: // From MShwEventPublisher
       
    63 
       
    64 		/** @see MShwEventPublisher::SetEventQueue */
       
    65 		void SetEventQueue( MShwEventQueue* aQueue );
       
    66 
       
    67 	private:
       
    68 
       
    69 		/// Ref: The event queue
       
    70 		MShwEventQueue* iQueue;
       
    71 
       
    72 	};
       
    73 
       
    74 #endif // __CSHWEVENTPUBLISHERBASE_H__