diff -r 0fd27995241b -r 9ac0a0a7da70 javauis/mmapi_qt/baseline/inc.emc/cmmamanager.h --- a/javauis/mmapi_qt/baseline/inc.emc/cmmamanager.h Tue May 11 16:07:20 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,100 +0,0 @@ -/* -* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: This class uses player factories to generate different players -* -*/ - - -#ifndef CMMAMANAGER_H -#define CMMAMANAGER_H - -// EXTERNAL INCLUDES -#include - -// INTERNAL INCLUDES -#include "mmafunctionserver.h" -#include "mmmaplayerfactory.h" -//#include - -// FORWARD DECLARATIONS -class CMMAPlayer; - -// CLASS DECLARATION -/** -* This class uses player factories to generate different types of players. -*/ - -NONSHARABLE_CLASS(CMMAManager): public CBase, public MMMAPlayerFactory -{ -public: // Constructors and destructors - /** - * Deletes all owned members. - */ - virtual ~CMMAManager(); - - /** - * Static constructor - */ - static void StaticCreateManagerL(CMMAManager** aManager, - TInt aMIDletSuiteID); - -protected: - /** - * Initializes member variables to defaults. - */ - CMMAManager(); - - /** - * Second phase construct. - */ - void ConstructL(TInt aMIDletSuiteID); - -public: // From MMMAPlayerFactory - - /** - * @see MMAPlayerFactory - */ - - CMMAPlayer* CreatePlayerL(const TDesC& aContentType); - - CMMAPlayer* CreatePlayerL(const TDesC& aProtocol, - const TDesC& aMiddlePart, - const TDesC& aParameters); - - CMMAPlayer* CreatePlayerL(const TDesC8& aHeaderData); - - void GetSupportedContentTypesL(const TDesC& aProtocol, - CDesC16Array& aMimeTypeArray); - - void GetSupportedProtocolsL(const TDesC& aContentType, - CDesC16Array& aProtocolArray); -public: // new methods - - void SetSourceInfoL(const TUint8* header, TInt aLength); - - /** - * Adds player factory to manager - * - * @param aPlayerFactory handle to player factory - */ - IMPORT_C void AddPlayerFactoryL(MMMAPlayerFactory* aPlayerFactory); - -private: - /** - * Array of player factories. Owned. - */ - RPointerArray< MMMAPlayerFactory > iPlayerFactories; -}; - -#endif // CMMAMANAGER_H