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