1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/a3fdevsound/src/mmfaudioserverproxy/mmfaudioserverproxy.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,79 @@
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 MMFAUDIOSERVERPROXY_H
1.24 +#define MMFAUDIOSERVERPROXY_H
1.25 +
1.26 +// INCLUDES
1.27 +#include <e32base.h>
1.28 +#include <e32std.h>
1.29 +#include <mmf/common/mmfipc.h>
1.30 +#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
1.31 +#include <mmf/common/mmfipcserver.h>
1.32 +#endif
1.33 +#include "mmfaudioclientserver.h"
1.34 +
1.35 +// FORWARD DECLARATIONS
1.36 +class RMMFAudioServerProxy; // declared here;
1.37 +
1.38 +// CLASS DECLARATION
1.39 +
1.40 +/**
1.41 +* Client side session for AudioServer.
1.42 +*
1.43 +* @lib
1.44 +* @since
1.45 +*/
1.46 +NONSHARABLE_CLASS( RMMFAudioServerProxy ): public RMmfSessionBase
1.47 + {
1.48 +public: // New functions
1.49 +
1.50 + /**
1.51 + * Creates a new session to AudioServer. The very first call will start
1.52 + * AudioServer. Upon successful completion of this method, a new instance
1.53 + * of DevSound server will be created.
1.54 + * @since
1.55 + * @return KErrNone if successful, otherwise one of the other system-wide
1.56 + * error codes.
1.57 + */
1.58 + IMPORT_C TInt Open();
1.59 +
1.60 + /**
1.61 + * Sets the DevSound info. This method is no longer used.
1.62 + * @since
1.63 + * @return KErrNone if successful, otherwise one of the other system-wide
1.64 + * error codes.
1.65 + */
1.66 + IMPORT_C TInt SetDevSoundInfo();
1.67 +
1.68 + /**
1.69 + * Returns handle to the DevSound server created by AudioServer session.
1.70 + * @since
1.71 + * @return TInt handle to the DevSound server.
1.72 + */
1.73 + IMPORT_C TInt GetDevSoundSessionHandle();
1.74 +
1.75 +private:
1.76 +
1.77 + TInt OpenSessionToTrustedAudioServer();
1.78 + };
1.79 +
1.80 +#endif // MMFAUDIOSERVERPROXY_H
1.81 +
1.82 +// End of File