os/mm/mmlibs/mmfw/SecureDRM/inc/Client/MmfDrmPluginServerProxy.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 MMFDRMPLUGINSERVERPROXY_H
    17 #define MMFDRMPLUGINSERVERPROXY_H
    18 
    19 #include <e32base.h>
    20 #include <f32file.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 
    29 
    30 NONSHARABLE_CLASS( RMMFDRMPluginServerProxy ): public RMmfSessionBase
    31 /**
    32 *@internalTechnology
    33 */
    34 	{
    35 public:
    36 
    37 	IMPORT_C TInt Open();
    38 	IMPORT_C TInt LaunchControllerServer(TUint aMaxHeapSize, TBool aUseSharedHeap,
    39 										TThreadId& aControllerThreadId, TUint aStackSize);
    40 	IMPORT_C TInt GetControllerSessionHandle();
    41 	IMPORT_C TInt PanicControllerThread(TThreadId aTid, const TDesC& aCategory,TInt aReason);
    42 	IMPORT_C TInt KillControllerThread(TThreadId aTid, TInt aReason);
    43 	IMPORT_C TInt SetThreadPriority(TThreadId aTid, TThreadPriority aPriority);
    44 	
    45 	// Data content functions are designed to be used by CMMFUtilityFileInfo
    46 	IMPORT_C void OpenDataContentL(const TDesC& aFilePath, const TDesC8& aInitData);
    47 	// File handle must be shared through the call RFs::ShareProtected(); 
    48 	// otherwise KErrBadHandle will return
    49 	IMPORT_C void OpenDataContentL(const RFile& aFile, const TDesC8& aInitData);
    50 	IMPORT_C TInt EvaluateDataContentIntent(TIntent aIntent);
    51 	IMPORT_C TBool GetDataContentMimeTypeL(TDes8& aMimeType);
    52 	IMPORT_C void GetDataContentFileHeaderL(TDes8& aHeaderData, TInt aMaxLength);
    53 	};
    54 
    55 #endif