Update contrib.
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __MMFDEVSOUNDSERVER_H__
17 #define __MMFDEVSOUNDSERVER_H__
22 #include <mmf/common/mmfipc.h>
23 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
24 #include <mmf/common/mmfipcserver.h>
26 #include "MmfBtAudioServer.h"
29 class CMMFDevSoundServer; // declared here.
31 NONSHARABLE_CLASS( CMMFDevSoundServer ): public CMmfIpcServer
37 IMPORT_C static CMMFDevSoundServer* NewL(CMMFAudioServer* aAudioServer, TProcessId& aClientPID);
38 ~CMMFDevSoundServer();
39 CMmfIpcSession* NewSessionL(const TVersion &aVersion) const;
40 void IncrementSessionId();
41 void DecrementSessionId();
42 void SendEventToClient(TInt aSessionToAlert, TInt aSessionToBeLaunched);
43 void LaunchRequest(TInt aSessionId);
44 TInt DevSoundSessionId() {return iDevSoundSessionId;};
45 TBool CheckClientCapabilities();
46 void SetClientCapabilitiesL(TThreadId aTid);
48 IMPORT_C static TInt StartThread(TAny* aParams);
52 CMMFDevSoundServer(CMMFAudioServer* aAudioServer, TProcessId& aClientPID);
55 class CDelayDevSoundShutDown : public CActive
59 static CDelayDevSoundShutDown* NewL();
60 ~CDelayDevSoundShutDown();
62 void SetDelay(TTimeIntervalMicroSeconds32 aDelay);
65 CDelayDevSoundShutDown();
77 TInt iDevSoundSessionId;
78 TInt iSessionToBeLaunched;
79 TProcessId iClientPID;
81 CDelayDevSoundShutDown* iDelayDevSoundShutDown;
82 CMMFAudioServer* iAudioServer;