/*
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: A wrapper interface around MMF (Multimedia Framework) to get
* information about MIME-types supported by MMF.
*
*/
#ifndef PROFILEMMFINFOUTILITY_H
#define PROFILEMMFINFOUTILITY_H
// INCLUDES
#include <e32std.h>
// CLASS DECLARATION
/**
* A helper interface used by CProfileToneHandler to check whether a MIME
* type is supported by MMF.
*
* @lib ProfileSettingsView.lib
* @since Series 60 3.0
*/
class ProfileMmfInfoUtility
{
public: // New functions
/**
* Checks if the given MIME-type is supported by MMF. In other words,
* checks if there is an MMF plugin to handle the given MIME type.
* @param aMimeType the MIME type for which an MMF plugin is searched.
* @return ETrue if the given MIME is supported by MMF,
* EFalse otherwise.
*/
static TBool IsMimeTypeSupportedL( const TDesC8& aMimeType );
/**
* Checks if the given file's header data is supported
* by MMF, especially for m4a drm files.
* @param aFileName the name of the file to be judged.
* @return ETrue if the given file is supported by MMF,
* EFalse otherwise.
*/
static TBool IsHeaderDataSupportedL( const TDesC& aFileName );
private: // Constructor and destructor
/**
* Default constructor. This is private since this class is not intended
* to be instantiated.
*/
ProfileMmfInfoUtility() {};
// Destructor.
~ProfileMmfInfoUtility() {};
//internal use
/**
* Get the header data of the file
* @param aFileName specifies the name of the file.
* @param aHeaderData contains the header data of the file.
* @param aMaxLength the length of header data.
*/
static void GetFileHeaderDataL(const TDesC& aFileName, TDes8& aHeaderData, TInt aMaxLength);
};
#endif // PROFILEMMFINFOUTILITY_H
// End of File