os/mm/mmlibs/mmfw/SecureDRM/src/Server/MmfDrmPluginServerSession.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2007-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef MMFDRMPLUGINSERVERSESSION_H
    17 #define MMFDRMPLUGINSERVERSESSION_H
    18 
    19 #include <e32base.h>
    20 #include <e32std.h>
    21 #include <mmf/common/mmfipc.h>
    22 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #include <mmf/common/mmfipcserver.h>
    24 #endif
    25 #include <caf/caf.h>
    26 using namespace ContentAccess;
    27 
    28 #include "MmfDrmPluginClientServer.h"
    29 
    30 
    31 class CMMFDRMPluginServer;
    32 
    33 class CMMFDRMPluginServerSession : public CMmfIpcSession
    34 /**
    35 *@internalTechnology
    36 */
    37 	{
    38 public:
    39 	static CMMFDRMPluginServerSession* NewL();
    40 	~CMMFDRMPluginServerSession();
    41 	void CreateL(const CMmfIpcServer& aServer);
    42 	void ServiceL(const RMmfIpcMessage& aMessage);
    43 	
    44 private:
    45 	CMMFDRMPluginServerSession();
    46 	
    47 	void DoLaunchControllerL(const RMmfIpcMessage& aMessage);
    48 	void DoPanicControllerThreadL(const RMmfIpcMessage& aMessage);
    49 	void DoKillControllerThreadL(const RMmfIpcMessage& aMessage);
    50 	void SetControllerServerInfo(RHandleBase& aControllerSessionHandle,
    51 							TThreadId& aControllerThreadId);
    52 	void DoSetThreadPriorityL(const RMmfIpcMessage& aMessage);
    53 
    54 	void DoOpenContentByFilePathL(const RMmfIpcMessage& aMessage);
    55 	void DoOpenContentByFileHandleL(const RMmfIpcMessage& aMessage);
    56 	void GetContentInitDataL(const TDesC8& aInitData, HBufC*& aUniqueId,
    57 							 TBool& aUIEnabled, ContentAccess::TIntent& aIntent);
    58 	TInt DoEvaluateContentIntent(const RMmfIpcMessage& aMessage);
    59 	void DoGetContentMimeTypeL(const RMmfIpcMessage& aMessage);
    60 	void DoGetContentFileHeaderL(const RMmfIpcMessage& aMessage);
    61 	void DoSetDrmPluginServerTimeout(const RMmfIpcMessage& aMessage);
    62 	
    63 private:
    64 	RHandleBase iControllerSessionHandle;
    65 	TThreadId iControllerThreadID;
    66 	
    67 	// Used by CMMFUtilityFileInfo
    68 	ContentAccess::CData* iData;
    69 	};
    70 
    71 #endif