javauis/mmapi_akn/baseline/inc/cmmavideourlplayerfactory.h
branchRCL_3
changeset 26 2455ef1f5bbc
parent 14 04becd199f91
equal deleted inserted replaced
25:ae942d28ec0e 26:2455ef1f5bbc
       
     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 video player.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAVIDEOURLPLAYERFACTORY_H
       
    20 #define CMMAVIDEOURLPLAYERFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cmmammfplayerfactory.h"
       
    24 // CONSTANTS
       
    25 
       
    26 
       
    27 //  CLASS DECLARATION
       
    28 /**
       
    29 *   This class is used for creating URL video players
       
    30 *
       
    31 *
       
    32 */
       
    33 
       
    34 NONSHARABLE_CLASS(CMMAVideoUrlPlayerFactory): public CMMAMMFPlayerFactory
       
    35 {
       
    36 public: // Constructor and destructor
       
    37     static CMMAVideoUrlPlayerFactory* NewLC();
       
    38     ~CMMAVideoUrlPlayerFactory();
       
    39 
       
    40 private: // Constructor
       
    41     CMMAVideoUrlPlayerFactory();
       
    42 
       
    43 public: // From MMMAPlayerFactory
       
    44     CMMAPlayer* CreatePlayerL(const TDesC& aContentType);
       
    45 
       
    46     CMMAPlayer* CreatePlayerL(const TDesC& aProtocol,
       
    47                               const TDesC& aMiddlePart,
       
    48                               const TDesC& aParameters);
       
    49 
       
    50     CMMAPlayer* CreatePlayerL(const TDesC8& aHeaderData);
       
    51 
       
    52     void GetSupportedContentTypesL(const TDesC& aProtocol,
       
    53                                    CDesC16Array& aMimeTypeArray);
       
    54 
       
    55     void GetSupportedProtocolsL(const TDesC& aContentType,
       
    56                                 CDesC16Array& aProtocolArray);
       
    57 
       
    58 public: // From CMMAMMFPlayerFactory
       
    59     CMMAPlayer* CreatePlayerL(
       
    60         CMMAMMFResolver* aResolver);
       
    61 
       
    62 
       
    63     void MediaIdsL(RArray<TUid>& aMediaIds);
       
    64 
       
    65     CMMFPluginSelectionParameters::TMediaIdMatchType
       
    66     MediaIdMatchType();
       
    67 
       
    68 private: // Data
       
    69     HBufC* iUrl; // owned url
       
    70 };
       
    71 
       
    72 #endif // CMMAVIDEOURLPLAYERFACTORY_H