os/mm/devsound/a3fdevsound/src/mmfaudioserverfactory/mmfaudioserverfactory.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/a3fdevsound/src/mmfaudioserverfactory/mmfaudioserverfactory.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,91 @@
     1.4 +/*
     1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +#ifndef MMFAUDIOSERVERFACTORY_H
    1.24 +#define MMFAUDIOSERVERFACTORY_H
    1.25 +
    1.26 +//  INCLUDES
    1.27 +#include <e32base.h>
    1.28 +#include <ecom/ecom.h>
    1.29 +#include <badesca.h>
    1.30 +#include <a3f/mmfaudiosvrservice.h>
    1.31 +
    1.32 +// FORWARD DECLARATIONS
    1.33 +class CMMFAudioServer;
    1.34 +
    1.35 +// CLASS DECLARATION
    1.36 +
    1.37 +/**
    1.38 +*  Utility factory class that can be used to launch additional servers/objects
    1.39 +*  in Audio Server.
    1.40 +*
    1.41 +*  @lib AudioServerFactory.lib
    1.42 +*  @since 
    1.43 +*/
    1.44 +class CMMFAudioServerFactory : public CBase
    1.45 +	{
    1.46 +public:  // Constructors and destructor
    1.47 +
    1.48 +	/**
    1.49 +	* Constructs, and returns a pointer to, a new CMMFAudioServerFactory
    1.50 +	* object.
    1.51 +	* Leaves on failure..
    1.52 +	* @return CMMFAudioServerFactory* A pointer to newly created object.
    1.53 +	*/
    1.54 +	IMPORT_C static CMMFAudioServerFactory* NewL();
    1.55 +
    1.56 +	/**
    1.57 +	* Destructor.
    1.58 +	*/
    1.59 +	IMPORT_C ~CMMFAudioServerFactory();
    1.60 +
    1.61 +public: // New functions
    1.62 +
    1.63 +	/**
    1.64 +	* Called by Audio Server when Audio Server is started.
    1.65 +	* @since 
    1.66 +	* @param const CMMFAudioServer& aAudioServer - Audio Server
    1.67 +	*/
    1.68 +	IMPORT_C void StartL(const CMMFAudioServer& aAudioServer);
    1.69 +
    1.70 +	/**
    1.71 +	* Called by Audio Server when Audio Server is shutting down
    1.72 +	* @since 
    1.73 +	* @param const CMMFAudioServer& aAudioServer - Audio Server
    1.74 +	*/
    1.75 +	IMPORT_C void Stop(const CMMFAudioServer& aAudioServer);
    1.76 +
    1.77 +private:
    1.78 +
    1.79 +	/**
    1.80 +	* C++ default constructor.
    1.81 +	*/
    1.82 +	CMMFAudioServerFactory();
    1.83 +
    1.84 +	/**
    1.85 +	* By default Symbian 2nd phase constructor is private.
    1.86 +	*/
    1.87 +	void ConstructL();
    1.88 +	RPointerArray<MAudioSvrService> iAudioServList;
    1.89 +
    1.90 +	};
    1.91 +
    1.92 +#endif // MMFAUDIOSERVERFACTORY_H
    1.93 +
    1.94 +// End of File