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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef MMFDRMPLUGINSERVERPROXY_H
17 #define MMFDRMPLUGINSERVERPROXY_H
21 #include <mmf/common/mmfipc.h>
22 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
23 #include <mmf/common/mmfipcserver.h>
26 using namespace ContentAccess;
30 NONSHARABLE_CLASS( RMMFDRMPluginServerProxy ): public RMmfSessionBase
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);
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);