Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #ifndef MMFAUDIOSERVERFACTORY_H
21 #define MMFAUDIOSERVERFACTORY_H
25 #include <ecom/ecom.h>
27 #include <a3f/mmfaudiosvrservice.h>
29 // FORWARD DECLARATIONS
30 class CMMFAudioServer;
35 * Utility factory class that can be used to launch additional servers/objects
38 * @lib AudioServerFactory.lib
41 class CMMFAudioServerFactory : public CBase
43 public: // Constructors and destructor
46 * Constructs, and returns a pointer to, a new CMMFAudioServerFactory
49 * @return CMMFAudioServerFactory* A pointer to newly created object.
51 IMPORT_C static CMMFAudioServerFactory* NewL();
56 IMPORT_C ~CMMFAudioServerFactory();
58 public: // New functions
61 * Called by Audio Server when Audio Server is started.
63 * @param const CMMFAudioServer& aAudioServer - Audio Server
65 IMPORT_C void StartL(const CMMFAudioServer& aAudioServer);
68 * Called by Audio Server when Audio Server is shutting down
70 * @param const CMMFAudioServer& aAudioServer - Audio Server
72 IMPORT_C void Stop(const CMMFAudioServer& aAudioServer);
77 * C++ default constructor.
79 CMMFAudioServerFactory();
82 * By default Symbian 2nd phase constructor is private.
85 RPointerArray<MAudioSvrService> iAudioServList;
89 #endif // MMFAUDIOSERVERFACTORY_H