sl@0: /* sl@0: * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef MMFAUDIOSERVERPROXY_H sl@0: #define MMFAUDIOSERVERPROXY_H sl@0: sl@0: // INCLUDES sl@0: #include sl@0: #include sl@0: #include sl@0: #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS sl@0: #include sl@0: #endif sl@0: #include "mmfaudioclientserver.h" sl@0: sl@0: // FORWARD DECLARATIONS sl@0: class RMMFAudioServerProxy; // declared here; sl@0: sl@0: // CLASS DECLARATION sl@0: sl@0: /** sl@0: * Client side session for AudioServer. sl@0: * sl@0: * @lib sl@0: * @since sl@0: */ sl@0: NONSHARABLE_CLASS( RMMFAudioServerProxy ): public RMmfSessionBase sl@0: { sl@0: public: // New functions sl@0: sl@0: /** sl@0: * Creates a new session to AudioServer. The very first call will start sl@0: * AudioServer. Upon successful completion of this method, a new instance sl@0: * of DevSound server will be created. sl@0: * @since sl@0: * @return KErrNone if successful, otherwise one of the other system-wide sl@0: * error codes. sl@0: */ sl@0: IMPORT_C TInt Open(); sl@0: sl@0: /** sl@0: * Sets the DevSound info. This method is no longer used. sl@0: * @since sl@0: * @return KErrNone if successful, otherwise one of the other system-wide sl@0: * error codes. sl@0: */ sl@0: IMPORT_C TInt SetDevSoundInfo(); sl@0: sl@0: /** sl@0: * Returns handle to the DevSound server created by AudioServer session. sl@0: * @since sl@0: * @return TInt handle to the DevSound server. sl@0: */ sl@0: IMPORT_C TInt GetDevSoundSessionHandle(); sl@0: sl@0: private: sl@0: sl@0: TInt OpenSessionToTrustedAudioServer(); sl@0: }; sl@0: sl@0: #endif // MMFAUDIOSERVERPROXY_H sl@0: sl@0: // End of File