os/mm/devsound/a3fdevsound/src/mmfaudioserver/mmfaudioserversession.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 #ifndef MMFAUDIOSERVERSESSION_H
    21 #define MMFAUDIOSERVERSESSION_H
    22 
    23 //  INCLUDES
    24 #include <e32base.h>
    25 #include <e32std.h>
    26 #include <mmf/common/mmfipc.h>
    27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    28 #include <mmf/common/mmfipcserver.h>
    29 #endif
    30 #include "mmfaudioclientserver.h"
    31 
    32 
    33 // CLASS DECLARATION
    34 
    35 /**
    36 *  Server-side session implementation.
    37 *
    38 *  @lib MmfAudioServer.exe
    39 */
    40 class CMMFAudioServerSession : public CMmfIpcSession
    41 	{
    42 public:  
    43 
    44 	/**
    45 	* Constructs, and returns a pointer to, a new CMMFAudioServerSession
    46 	* object.
    47 	* @param aDevSoundSessionHandle. A handle to the DevSound server session.
    48 	* @return CMMFAudioServerSession* a pointer to newly created object.
    49 	*/
    50 	static CMMFAudioServerSession* NewL(
    51 									RHandleBase& aDevSoundSessionHandle);
    52 
    53 	/**
    54 	* Destructor.
    55 	*/
    56 	~CMMFAudioServerSession();
    57 
    58 	/**
    59 	* Creates a new server-side session.
    60 	* @param aServer - audioserver referencei
    61 	*/
    62 	void CreateL(const CMmfIpcServer& aServer);
    63 
    64 	/**
    65 	* Handles the client requestsi
    66 	* @param const aMessage - Request from client.
    67 	*/
    68 	void ServiceL(const RMmfIpcMessage& aMessage);
    69 
    70 	/**
    71 	* Returns the AudioServer session ID.
    72 	* @return TInt A integer representing audio server session ID.
    73 	*/
    74 	TInt AudioServerSessionId() {return iAudioServerSessionId;};
    75 
    76 private:  
    77 	//Constructor.
    78 	
    79 	CMMFAudioServerSession(RHandleBase& aDevSoundSessionHandle);
    80 
    81 	//Second phase constructor.
    82 	
    83 	void ConstructL();
    84 
    85 private:    // Data
    86 	// Integer representing audio server session.
    87 	TInt iAudioServerSessionId;
    88 	// This is the handle to the DevSound server session.
    89 	RHandleBase iDevSoundSessionHandle;
    90 
    91 	};
    92 
    93 #endif // MMFAUDIOSERVERSESSION_H
    94 
    95 // End of File