os/mm/devsoundextensions/drmaudioplayer/DRMPlayServer/inc/DRMCustomCommandAsyncAO.h
Update contrib.
2 * Copyright (c) 2006 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.
14 * Description: DRM Play Server
21 #ifndef DRMCUSTOMCOMMANDASYNCAO_H
22 #define DRMCUSTOMCOMMANDASYNCAO_H
25 #include "DRMPlaySession.h"
26 // #include <mdaaudiosampleplayer.h>
28 class CDRMPlayServerSession;
30 class CDRMCustomCommandAsyncAO : public CActive
33 enum TCustomCommandType
35 ECustomCommandWithResult,
36 ECustomCommandWithoutResult,
39 static CDRMCustomCommandAsyncAO* NewL( const RMessage2& aMessage,
40 TCustomCommandType aType,
41 CDRMPlayServerSession& aParent );
42 ~CDRMCustomCommandAsyncAO();
44 TMMFMessageDestinationPckg& GetMMFMessageDestinationPckg();
45 TInt GetMMFMessageFunction();
46 // Returns referecens to descriptors,
47 // the descriptors are still owned by this object
48 HBufC8* GetData1FromClient();
49 HBufC8* GetData2FromClient();
50 HBufC8* GetDataToClient();
54 void TransferOwnershipL( const RMessage2& aMessage );
59 TInt RunError( TInt aError );
62 CDRMCustomCommandAsyncAO( TCustomCommandType aType, CDRMPlayServerSession& aParent );
63 void ConstructL( const RMessage2& aMessage );
66 TCustomCommandType iCustomCommandType;
68 //TAsyncCallbackStatePckgBuf iCallbackState;
69 CDRMPlayServerSession& iParent;
70 TMMFMessageDestinationPckg iMMFMessageDestinationPckg;
71 TInt iMMFMessageFunction;
72 HBufC8* iData1FromClient;
73 HBufC8* iData2FromClient;
74 HBufC8* iDataToClient;
78 #endif // DRMCUSTOMCOMMANDASYNCAO_H