mpviewplugins/mpsettingsviewplugin/tsrc/unittest_mpsettingsaudioeffectswidget/stub/inc/mpenginefactory.h
changeset 45 612c4815aebe
child 55 f3930dda3342
equal deleted inserted replaced
43:0f32e550d9d8 45:612c4815aebe
       
     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:
       
    13 *
       
    14 * Description: Music Player engine.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPENGINEFACTORY_H
       
    19 #define MPENGINEFACTORY_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include "mpengine.h"
       
    24 #include "mpcommondefs.h"
       
    25 
       
    26 
       
    27 class MpEngineFactory
       
    28 {
       
    29 private:
       
    30     explicit MpEngineFactory();
       
    31 
       
    32 public:
       
    33     virtual ~MpEngineFactory();
       
    34     static MpEngineFactory * instance();
       
    35     
       
    36     static MpEngine *createSharedEngine( TUid uid = TUid::Uid( MpCommon::KMusicPlayerUid ), MpEngine::EngineMode mode = MpEngine::StandAlone );
       
    37     static MpEngine *sharedEngine();
       
    38     static void close();
       
    39 	
       
    40 public:
       
    41     MpEngine    *mSharedEngine;
       
    42 };
       
    43 
       
    44 #endif // MPENGINEFACTORY_H