javauis/mmapi_qt/baseline/inc/cmmavideoplayerfactory.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 video player.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAVIDEOPLAYERFACTORY_H
       
    20 #define CMMAVIDEOPLAYERFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cmmammfplayerfactory.h"
       
    24 // CONSTANTS
       
    25 
       
    26 //  CLASS DECLARATION
       
    27 /**
       
    28 *   This class is used for creating video player.
       
    29 *
       
    30 *
       
    31 */
       
    32 
       
    33 NONSHARABLE_CLASS(CMMAVideoPlayerFactory): public CMMAMMFPlayerFactory
       
    34 {
       
    35 public: // Constructor and destructor
       
    36     static CMMAVideoPlayerFactory* NewLC();
       
    37     ~CMMAVideoPlayerFactory();
       
    38 
       
    39 private: // Constructor
       
    40     CMMAVideoPlayerFactory();
       
    41 
       
    42 public: // New methods
       
    43 
       
    44 #ifdef RD_JAVA_OMA_DRM_V2
       
    45     CMMAPlayer* CreatePlayerWithFileL(const TDesC& aContentType,
       
    46                                       const TDesC* aFileName);
       
    47 #endif // RD_JAVA_OMA_DRM_V2
       
    48 
       
    49 public: // From CMMAMMFPlayerFactory
       
    50 
       
    51     CMMAPlayer* CreatePlayerL(
       
    52         CMMAMMFResolver* aResolver);
       
    53 
       
    54 
       
    55     void MediaIdsL(RArray<TUid>& aMediaIds);
       
    56 
       
    57 private: //data
       
    58 #ifdef RD_JAVA_OMA_DRM_V2
       
    59     const TDesC* iFileName;
       
    60 #endif // RD_JAVA_OMA_DRM_V2
       
    61 };
       
    62 
       
    63 #endif // CMMAVIDEOPLAYERFACTORY_H