os/mm/devsound/a3fdevsound/src/mmfaudioserverproxy/mmfaudioserverproxy.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
sl@0
    20
#ifndef MMFAUDIOSERVERPROXY_H
sl@0
    21
#define MMFAUDIOSERVERPROXY_H
sl@0
    22
sl@0
    23
//  INCLUDES
sl@0
    24
#include <e32base.h>
sl@0
    25
#include <e32std.h>
sl@0
    26
#include <mmf/common/mmfipc.h>
sl@0
    27
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
sl@0
    28
#include <mmf/common/mmfipcserver.h>
sl@0
    29
#endif
sl@0
    30
#include "mmfaudioclientserver.h"
sl@0
    31
sl@0
    32
// FORWARD DECLARATIONS
sl@0
    33
class RMMFAudioServerProxy; // declared here;
sl@0
    34
sl@0
    35
// CLASS DECLARATION
sl@0
    36
sl@0
    37
/**
sl@0
    38
*  Client side session for AudioServer.
sl@0
    39
*
sl@0
    40
*  @lib
sl@0
    41
*  @since 
sl@0
    42
*/
sl@0
    43
NONSHARABLE_CLASS( RMMFAudioServerProxy ): public RMmfSessionBase
sl@0
    44
	{
sl@0
    45
public: // New functions
sl@0
    46
sl@0
    47
	/**
sl@0
    48
	* Creates a new session to AudioServer. The very first call will start
sl@0
    49
	* AudioServer. Upon successful completion of this method, a new instance
sl@0
    50
	* of DevSound server will be created.
sl@0
    51
	* @since 
sl@0
    52
	* @return KErrNone if successful, otherwise one of the other system-wide
sl@0
    53
	* error codes.
sl@0
    54
	*/
sl@0
    55
	IMPORT_C TInt Open();
sl@0
    56
sl@0
    57
	/**
sl@0
    58
	* Sets the DevSound info. This method is no longer used.
sl@0
    59
	* @since 
sl@0
    60
	* @return KErrNone if successful, otherwise one of the other system-wide
sl@0
    61
	* error codes.
sl@0
    62
	*/
sl@0
    63
	IMPORT_C TInt SetDevSoundInfo();
sl@0
    64
sl@0
    65
	/**
sl@0
    66
	* Returns handle to the DevSound server created by AudioServer session.
sl@0
    67
	* @since 
sl@0
    68
	* @return TInt handle to the DevSound server.
sl@0
    69
	*/
sl@0
    70
	IMPORT_C TInt GetDevSoundSessionHandle();
sl@0
    71
	
sl@0
    72
private:
sl@0
    73
sl@0
    74
	TInt OpenSessionToTrustedAudioServer();
sl@0
    75
	};
sl@0
    76
sl@0
    77
#endif      // MMFAUDIOSERVERPROXY_H
sl@0
    78
sl@0
    79
// End of File