sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef R_MMRCCLIENTIMPLEMENTATION_H sl@0: #define R_MMRCCLIENTIMPLEMENTATION_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: #include "mmrcclient.h" sl@0: #include "mmrcclientserver.h" sl@0: #include "mmrcclientsession.h" sl@0: #include "mmrcmsgqueuehandlerobserver.h" sl@0: sl@0: class MMultimediaResourceControlObserver; sl@0: class CMMRCClientMsgQueueHandler; sl@0: sl@0: NONSHARABLE_CLASS(CMMRCClientImplementation) : public CBase, public MMMRCMsgQueueHandlerObserver sl@0: { sl@0: public: sl@0: static CMMRCClientImplementation* NewL(MMultimediaResourceControlObserver& aCallback); sl@0: ~CMMRCClientImplementation(); sl@0: sl@0: TUint64 LogOn(TProcessId aProcessId); sl@0: void Close(); sl@0: sl@0: TInt SendResourceRequest(MLogicalChain* aLogicalChainLastCommited, MLogicalChain* aLogicalChainRequested, CAudioContext* aContext); sl@0: sl@0: //for notification sl@0: TInt RegisterAsClient(TUid aEventType, const TDesC8& aNotificationRegistrationData); sl@0: TInt CancelRegisterAsClient(TUid aEventType); sl@0: TInt WillResumePlay(); sl@0: sl@0: //from MMMRCMsgQueueHandlerObserver sl@0: void HandleMessage(TMMRCQueueItem& aMessage); sl@0: sl@0: void ResetMessages(); sl@0: private: sl@0: void ConstructL(); sl@0: CMMRCClientImplementation(MMultimediaResourceControlObserver& aCallback); sl@0: sl@0: private: sl@0: MMultimediaResourceControlObserver& iObserver; sl@0: RMMRCClientSession iMMRCClientSession; sl@0: RMsgQueue iMsgQueue; sl@0: CMMRCClientMsgQueueHandler* iMsgClientQueueHandler; sl@0: }; sl@0: sl@0: #endif /* R_MMRCCLIENTIMPLEMENTATION_H */