javauis/mmapi_qt/animated_gif_notUsed/inc/cmmaanimationplayerfactory.h
changeset 56 abc41079b313
parent 50 023eef975703
child 57 59b3b4473dc8
equal deleted inserted replaced
50:023eef975703 56:abc41079b313
     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 animation player
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAANIMATIONPLAYERFACTORY_H
       
    20 #define CMMAANIMATIONPLAYERFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "mmmaplayerfactory.h"
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMMAAnimationPlayer;
       
    29 
       
    30 //  CLASS DECLARATION
       
    31 /**
       
    32 *   This class is used for creating animation player.
       
    33 *
       
    34 */
       
    35 NONSHARABLE_CLASS(CMMAAnimationPlayerFactory): public MMMAPlayerFactory
       
    36 {
       
    37 public: // Constructor and destructor
       
    38     static CMMAAnimationPlayerFactory* NewLC();
       
    39     ~CMMAAnimationPlayerFactory();
       
    40 
       
    41 private: // Constructor
       
    42     CMMAAnimationPlayerFactory();
       
    43 
       
    44 public: // From MMMAPlayerFactory
       
    45 
       
    46     // Creates new player according to a content type.
       
    47     virtual CMMAPlayer* CreatePlayerL(const TDesC& aContentType);
       
    48 
       
    49     // Creates new player according to a locator
       
    50     virtual CMMAPlayer* CreatePlayerL(const TDesC& aProtocol,
       
    51                                       const TDesC& aMiddlePart,
       
    52                                       const TDesC& aParameters);
       
    53 
       
    54     // Creates new player according to a header data
       
    55     virtual CMMAPlayer* CreatePlayerL(const TDesC8& aHeaderData);
       
    56 
       
    57     // Gets player's supported content types.
       
    58     virtual void GetSupportedContentTypesL(const TDesC& aProtocol,
       
    59                                            CDesC16Array& aMimeTypeArray);
       
    60 
       
    61     // Gets player's supported protocols for the content type.
       
    62     virtual void GetSupportedProtocolsL(const TDesC& aContentType,
       
    63                                         CDesC16Array& aProtocolArray);
       
    64 
       
    65 private:
       
    66     // Create instance of animation player with sufficient controls
       
    67     CMMAAnimationPlayer* CreateAnimationPlayerL();
       
    68 
       
    69     // Create instance of animation player with sufficient controls, with specified file
       
    70     CMMAAnimationPlayer* CreateAnimationPlayerL(const TDesC& aFileName);
       
    71 
       
    72     // Add animation controls to player
       
    73     void AddControlsL(CMMAAnimationPlayer* aPlayer);
       
    74 
       
    75 };
       
    76 
       
    77 #endif // CMMAANIMATIONPLAYERFACTORY_H