javauis/mmapi_qt/baseline/inc/cmmamidiplayerfactory.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     1 /*
       
     2 * Copyright (c) 2002 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:  This class is used for creating MIDI player.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAMIDIPLAYERFACTORY_H
       
    20 #define CMMAMIDIPLAYERFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cmmammfplayerfactory.h"
       
    24 
       
    25 //  CLASS DECLARATION
       
    26 /**
       
    27 *   This class is used for creating MIDI player.
       
    28 *
       
    29 *
       
    30 */
       
    31 
       
    32 NONSHARABLE_CLASS(CMMAMIDIPlayerFactory): public CMMAMMFPlayerFactory
       
    33 {
       
    34 public: // Constructor and destructot
       
    35     static CMMAMIDIPlayerFactory* NewLC();
       
    36     ~CMMAMIDIPlayerFactory();
       
    37 
       
    38 private: // constructor
       
    39     CMMAMIDIPlayerFactory();
       
    40 
       
    41 public: // From MMMAPlayerFactory
       
    42     CMMAPlayer* CreatePlayerL(const TDesC& aProtocol,
       
    43                               const TDesC& aMiddlePart,
       
    44                               const TDesC& aParameters);
       
    45 
       
    46     void GetSupportedProtocolsL(const TDesC& aContentType,
       
    47                                 CDesC16Array& aProtocolArray);
       
    48 
       
    49 public: // From CMMAMMFPlayerFactory
       
    50 
       
    51     CMMAPlayer* CreatePlayerL(
       
    52         CMMAMMFResolver* aResolver);
       
    53 
       
    54     void MediaIdsL(RArray<TUid>& aMediaIds);
       
    55 
       
    56 
       
    57 private: // new methods
       
    58     CMMAPlayer* CreateMidiFilePlayerL(const TDesC& aContentType, TFileName aFileName);
       
    59     CMMAPlayer* CreateMidiSynthPlayerL(const TDesC& aContentType);
       
    60 };
       
    61 
       
    62 #endif // CMMAMIDIPLAYERFACTORY_H