Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #ifndef MMFAUDIOSERVERSESSION_H
21 #define MMFAUDIOSERVERSESSION_H
26 #include <mmf/common/mmfipc.h>
27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
28 #include <mmf/common/mmfipcserver.h>
30 #include "mmfaudioclientserver.h"
36 * Server-side session implementation.
38 * @lib MmfAudioServer.exe
40 class CMMFAudioServerSession : public CMmfIpcSession
45 * Constructs, and returns a pointer to, a new CMMFAudioServerSession
47 * @param aDevSoundSessionHandle. A handle to the DevSound server session.
48 * @return CMMFAudioServerSession* a pointer to newly created object.
50 static CMMFAudioServerSession* NewL(
51 RHandleBase& aDevSoundSessionHandle);
56 ~CMMFAudioServerSession();
59 * Creates a new server-side session.
60 * @param aServer - audioserver referencei
62 void CreateL(const CMmfIpcServer& aServer);
65 * Handles the client requestsi
66 * @param const aMessage - Request from client.
68 void ServiceL(const RMmfIpcMessage& aMessage);
71 * Returns the AudioServer session ID.
72 * @return TInt A integer representing audio server session ID.
74 TInt AudioServerSessionId() {return iAudioServerSessionId;};
79 CMMFAudioServerSession(RHandleBase& aDevSoundSessionHandle);
81 //Second phase constructor.
86 // Integer representing audio server session.
87 TInt iAudioServerSessionId;
88 // This is the handle to the DevSound server session.
89 RHandleBase iDevSoundSessionHandle;
93 #endif // MMFAUDIOSERVERSESSION_H