sl@0: // Copyright (c) 2007-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 MMFDRMPLUGINSERVERPROXY_H sl@0: #define MMFDRMPLUGINSERVERPROXY_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS sl@0: #include sl@0: #endif sl@0: #include sl@0: using namespace ContentAccess; sl@0: sl@0: sl@0: sl@0: NONSHARABLE_CLASS( RMMFDRMPluginServerProxy ): public RMmfSessionBase sl@0: /** sl@0: *@internalTechnology sl@0: */ sl@0: { sl@0: public: sl@0: sl@0: IMPORT_C TInt Open(); sl@0: IMPORT_C TInt LaunchControllerServer(TUint aMaxHeapSize, TBool aUseSharedHeap, sl@0: TThreadId& aControllerThreadId, TUint aStackSize); sl@0: IMPORT_C TInt GetControllerSessionHandle(); sl@0: IMPORT_C TInt PanicControllerThread(TThreadId aTid, const TDesC& aCategory,TInt aReason); sl@0: IMPORT_C TInt KillControllerThread(TThreadId aTid, TInt aReason); sl@0: IMPORT_C TInt SetThreadPriority(TThreadId aTid, TThreadPriority aPriority); sl@0: sl@0: // Data content functions are designed to be used by CMMFUtilityFileInfo sl@0: IMPORT_C void OpenDataContentL(const TDesC& aFilePath, const TDesC8& aInitData); sl@0: // File handle must be shared through the call RFs::ShareProtected(); sl@0: // otherwise KErrBadHandle will return sl@0: IMPORT_C void OpenDataContentL(const RFile& aFile, const TDesC8& aInitData); sl@0: IMPORT_C TInt EvaluateDataContentIntent(TIntent aIntent); sl@0: IMPORT_C TBool GetDataContentMimeTypeL(TDes8& aMimeType); sl@0: IMPORT_C void GetDataContentFileHeaderL(TDes8& aHeaderData, TInt aMaxLength); sl@0: }; sl@0: sl@0: #endif