os/mm/devsound/a3fdevsound/src/mmfaudioserver/mmfaudioserversession.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/a3fdevsound/src/mmfaudioserver/mmfaudioserversession.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,95 @@
     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 MMFAUDIOSERVERSESSION_H
    1.24 +#define MMFAUDIOSERVERSESSION_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 +
    1.36 +// CLASS DECLARATION
    1.37 +
    1.38 +/**
    1.39 +*  Server-side session implementation.
    1.40 +*
    1.41 +*  @lib MmfAudioServer.exe
    1.42 +*/
    1.43 +class CMMFAudioServerSession : public CMmfIpcSession
    1.44 +	{
    1.45 +public:  
    1.46 +
    1.47 +	/**
    1.48 +	* Constructs, and returns a pointer to, a new CMMFAudioServerSession
    1.49 +	* object.
    1.50 +	* @param aDevSoundSessionHandle. A handle to the DevSound server session.
    1.51 +	* @return CMMFAudioServerSession* a pointer to newly created object.
    1.52 +	*/
    1.53 +	static CMMFAudioServerSession* NewL(
    1.54 +									RHandleBase& aDevSoundSessionHandle);
    1.55 +
    1.56 +	/**
    1.57 +	* Destructor.
    1.58 +	*/
    1.59 +	~CMMFAudioServerSession();
    1.60 +
    1.61 +	/**
    1.62 +	* Creates a new server-side session.
    1.63 +	* @param aServer - audioserver referencei
    1.64 +	*/
    1.65 +	void CreateL(const CMmfIpcServer& aServer);
    1.66 +
    1.67 +	/**
    1.68 +	* Handles the client requestsi
    1.69 +	* @param const aMessage - Request from client.
    1.70 +	*/
    1.71 +	void ServiceL(const RMmfIpcMessage& aMessage);
    1.72 +
    1.73 +	/**
    1.74 +	* Returns the AudioServer session ID.
    1.75 +	* @return TInt A integer representing audio server session ID.
    1.76 +	*/
    1.77 +	TInt AudioServerSessionId() {return iAudioServerSessionId;};
    1.78 +
    1.79 +private:  
    1.80 +	//Constructor.
    1.81 +	
    1.82 +	CMMFAudioServerSession(RHandleBase& aDevSoundSessionHandle);
    1.83 +
    1.84 +	//Second phase constructor.
    1.85 +	
    1.86 +	void ConstructL();
    1.87 +
    1.88 +private:    // Data
    1.89 +	// Integer representing audio server session.
    1.90 +	TInt iAudioServerSessionId;
    1.91 +	// This is the handle to the DevSound server session.
    1.92 +	RHandleBase iDevSoundSessionHandle;
    1.93 +
    1.94 +	};
    1.95 +
    1.96 +#endif // MMFAUDIOSERVERSESSION_H
    1.97 +
    1.98 +// End of File