os/mm/devsound/a3fdevsound/inc/mmfaudiosvrservice.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/a3fdevsound/inc/mmfaudiosvrservice.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007-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 MMFAUDIOSVRSERVICE_H
    1.24 +#define MMFAUDIOSVRSERVICE_H
    1.25 +
    1.26 +/**
    1.27 +@publishedPartner 
    1.28 +@file
    1.29 +@released
    1.30 +*/
    1.31 +
    1.32 +//  INCLUDES
    1.33 +
    1.34 +#include <ecom/ecom.h>
    1.35 +#include <badesca.h>
    1.36 +
    1.37 +
    1.38 +/**
    1.39 +This is the interface for all audio service 
    1.40 +plugins. So Each Service plugin has to implement this interface.
    1.41 +*/
    1.42 +class MAudioSvrService
    1.43 +	{	
    1.44 +public:
    1.45 +	/**
    1.46 +	This method is used to pass a destructor key for ECom. The passed UID must be retained for the lifetime 
    1.47 +	of the plugin and, on a subsequent call to Release(),REComSession::DestroyedImplementation() must be 
    1.48 +	called by the plugin, using the stored UID.
    1.49 +	@param aUid The Uid returned by REComSession::CreateImplementationL() or similar.
    1.50 +	*/
    1.51 +	virtual void PassDestructorKey(TUid aUid)=0;
    1.52 +	/**
    1.53 +	This method is used to load or create the objects that are internally used by service plugin.
    1.54 +	@return KErrNone if successfull, else corresponding error code
    1.55 +	*/
    1.56 +	virtual TInt Load()=0;
    1.57 +	/**
    1.58 +	This method is used to start the service.
    1.59 +	@return KErrNone if successfull, else corresponding error code
    1.60 +	*/
    1.61 +	virtual TInt Start()=0;
    1.62 +	/**
    1.63 +	This method is used to Stop the service.
    1.64 +	@return KErrNone if successfull, else corresponding error code
    1.65 +	*/
    1.66 +	virtual void Stop()=0;
    1.67 +	/**
    1.68 +	This method is used to destroy plugin. This is equivalent to destructor.
    1.69 +	*/
    1.70 +	virtual void Release()=0;
    1.71 +	};
    1.72 +#endif