1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/SecureDRM/inc/Client/MmfDrmPluginServerProxy.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,55 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef MMFDRMPLUGINSERVERPROXY_H
1.20 +#define MMFDRMPLUGINSERVERPROXY_H
1.21 +
1.22 +#include <e32base.h>
1.23 +#include <f32file.h>
1.24 +#include <mmf/common/mmfipc.h>
1.25 +#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
1.26 +#include <mmf/common/mmfipcserver.h>
1.27 +#endif
1.28 +#include <caf/caf.h>
1.29 +using namespace ContentAccess;
1.30 +
1.31 +
1.32 +
1.33 +NONSHARABLE_CLASS( RMMFDRMPluginServerProxy ): public RMmfSessionBase
1.34 +/**
1.35 +*@internalTechnology
1.36 +*/
1.37 + {
1.38 +public:
1.39 +
1.40 + IMPORT_C TInt Open();
1.41 + IMPORT_C TInt LaunchControllerServer(TUint aMaxHeapSize, TBool aUseSharedHeap,
1.42 + TThreadId& aControllerThreadId, TUint aStackSize);
1.43 + IMPORT_C TInt GetControllerSessionHandle();
1.44 + IMPORT_C TInt PanicControllerThread(TThreadId aTid, const TDesC& aCategory,TInt aReason);
1.45 + IMPORT_C TInt KillControllerThread(TThreadId aTid, TInt aReason);
1.46 + IMPORT_C TInt SetThreadPriority(TThreadId aTid, TThreadPriority aPriority);
1.47 +
1.48 + // Data content functions are designed to be used by CMMFUtilityFileInfo
1.49 + IMPORT_C void OpenDataContentL(const TDesC& aFilePath, const TDesC8& aInitData);
1.50 + // File handle must be shared through the call RFs::ShareProtected();
1.51 + // otherwise KErrBadHandle will return
1.52 + IMPORT_C void OpenDataContentL(const RFile& aFile, const TDesC8& aInitData);
1.53 + IMPORT_C TInt EvaluateDataContentIntent(TIntent aIntent);
1.54 + IMPORT_C TBool GetDataContentMimeTypeL(TDes8& aMimeType);
1.55 + IMPORT_C void GetDataContentFileHeaderL(TDes8& aHeaderData, TInt aMaxLength);
1.56 + };
1.57 +
1.58 +#endif