javauis/mmapi_akn/baseline/inc.nga/cmmacameraplayerfactory.h
branchRCL_3
changeset 60 6c158198356e
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
       
     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 camera players.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMACAMERAPLAYERFACTORY_H
       
    20 #define CMMACAMERAPLAYERFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "cmmammfplayerfactory.h"
       
    25 #include "tmmaparametervalidator.h"
       
    26 #include "cmmacameraplayer.h"
       
    27 
       
    28 //  CLASS DECLARATION
       
    29 /**
       
    30 *   This class is used for creating camera players.
       
    31 *
       
    32 *
       
    33 */
       
    34 
       
    35 NONSHARABLE_CLASS(CMMACameraPlayerFactory): public CMMAMMFPlayerFactory
       
    36 {
       
    37 public: // Construction
       
    38     static CMMACameraPlayerFactory* NewLC();
       
    39     ~CMMACameraPlayerFactory();
       
    40 
       
    41 private:
       
    42     CMMACameraPlayerFactory();
       
    43 
       
    44 public: // From MMMAPlayerFactory
       
    45     CMMAPlayer* CreatePlayerL(const TDesC& aContentType);
       
    46 
       
    47     CMMAPlayer* CreatePlayerL(const TDesC8& aHeaderData);
       
    48 
       
    49     CMMAPlayer* CreatePlayerL(const TDesC& aProtocol,
       
    50                               const TDesC& aMiddlePart,
       
    51                               const TDesC& aParameters);
       
    52 
       
    53     void GetSupportedProtocolsL(const TDesC& aContentType,
       
    54                                 CDesC16Array& aProtocolArray);
       
    55 
       
    56 public: // From CMMAMMFPlayerFactory
       
    57 
       
    58     CMMAPlayer* CreatePlayerL(
       
    59         CMMAMMFResolver* aResolver);
       
    60 
       
    61 
       
    62     void MediaIdsL(RArray<TUid>& aMediaIds);
       
    63 
       
    64     void PreparePluginSelectionParametersL(
       
    65         CMMAMMFResolver* aResolver,
       
    66         CMMFFormatSelectionParameters* aFormatSelection);
       
    67 
       
    68 private: // Data
       
    69     CMMAAudioSettings* iAudioSettings; // Owned audio settings
       
    70     TMMAVideoSettings iVideoSettings; // Video settings
       
    71     TCamActiveCamera iCameraIndex;
       
    72 };
       
    73 
       
    74 #endif // CMMACAMERAPLAYERFACTORY_H