photosgallery/slideshow/engine/coresrc/shwplaybackfactory.h
changeset 0 4e91876724a2
child 30 a60acebbbd9d
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 playback factory, configures the playback for the slideshow
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CSHWPLAYBACKFACTORY_H__
       
    22 #define __CSHWPLAYBACKFACTORY_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 
       
    29 // Forward declarations
       
    30 class CAlfEnv;
       
    31 class MGlxVisualList;
       
    32 class MGlxMediaList;
       
    33 class MShwEventObserver;
       
    34 class MShwEventPublisher;
       
    35 class TShwEffectInfo;
       
    36 class MShwMusicObserver;
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40  * CShwPlaybackFactory
       
    41  * 
       
    42  * @lib shwslideshowengine.lib
       
    43  * @internal reviewed 08/06/2007 by Kimmo Hoikka
       
    44  */
       
    45 NONSHARABLE_CLASS( CShwPlaybackFactory ) : public CBase
       
    46     {
       
    47     public: // Constructors and destructor
       
    48 
       
    49         /**
       
    50          * Constructor
       
    51          * @param aHuiEnv the HUI environment
       
    52          * @param aVisualList the visual list of the slide show
       
    53          * @param aMediaList the media list for the show
       
    54          * @param aMusicObserver the music control observer. 
       
    55          * @param aScreenSize the screen size to use
       
    56          */
       
    57         static CShwPlaybackFactory* NewL(
       
    58             CAlfEnv* aAlfEnv, 
       
    59             MGlxVisualList* aVisualList,
       
    60             MGlxMediaList* aMediaList,
       
    61             MShwMusicObserver& aMusicObserver, 
       
    62             TSize aScreenSize );
       
    63 
       
    64         /**
       
    65          * Destructor.
       
    66          */
       
    67         ~CShwPlaybackFactory();
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72          * C++ constructor
       
    73          */
       
    74         CShwPlaybackFactory();
       
    75 
       
    76     public: // the API
       
    77 
       
    78         /**
       
    79          * @return the event observers.
       
    80          * Note! ownership of the real objects stays in the factory.
       
    81          */
       
    82         RPointerArray< MShwEventObserver > EventObservers();
       
    83 
       
    84         /**
       
    85          * @return the event publishers.
       
    86          * Note! ownership of the real objects stays in the factory.
       
    87          */
       
    88         RPointerArray< MShwEventPublisher > EventPublishers();
       
    89         
       
    90         /// @ref CShwSlideshowEngine::AvailableEffectsL
       
    91         static void AvailableEffectsL( RArray<TShwEffectInfo>& aEffects );
       
    92         
       
    93     private:
       
    94 
       
    95         /// Own: The implementation of the class, hidden from the clients
       
    96         class CShwPlaybackFactoryImpl;
       
    97         CShwPlaybackFactoryImpl* iImpl;
       
    98 
       
    99     };
       
   100 
       
   101 #endif // __CSHWPLAYBACKFACTORY_H__