23
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: A wrapper interface around MMF (Multimedia Framework) to get
|
|
15 |
* information about MIME-types supported by MMF.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef PROFILEMMFINFOUTILITY_H
|
|
22 |
#define PROFILEMMFINFOUTILITY_H
|
|
23 |
|
|
24 |
// INCLUDES
|
|
25 |
#include <e32std.h>
|
|
26 |
|
|
27 |
// CLASS DECLARATION
|
|
28 |
|
|
29 |
/**
|
|
30 |
* A helper interface used by CProfileToneHandler to check whether a MIME
|
|
31 |
* type is supported by MMF.
|
|
32 |
*
|
|
33 |
* @lib ProfileSettingsView.lib
|
|
34 |
* @since Series 60 3.0
|
|
35 |
*/
|
|
36 |
class ProfileMmfInfoUtility
|
|
37 |
{
|
|
38 |
public: // New functions
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Checks if the given MIME-type is supported by MMF. In other words,
|
|
42 |
* checks if there is an MMF plugin to handle the given MIME type.
|
|
43 |
* @param aMimeType the MIME type for which an MMF plugin is searched.
|
|
44 |
* @return ETrue if the given MIME is supported by MMF,
|
|
45 |
* EFalse otherwise.
|
|
46 |
*/
|
|
47 |
static TBool IsMimeTypeSupportedL( const TDesC8& aMimeType );
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Checks if the given file's header data is supported
|
|
51 |
* by MMF, especially for m4a drm files.
|
|
52 |
* @param aFileName the name of the file to be judged.
|
|
53 |
* @return ETrue if the given file is supported by MMF,
|
|
54 |
* EFalse otherwise.
|
|
55 |
*/
|
|
56 |
static TBool IsHeaderDataSupportedL( const TDesC& aFileName );
|
|
57 |
|
|
58 |
private: // Constructor and destructor
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Default constructor. This is private since this class is not intended
|
|
62 |
* to be instantiated.
|
|
63 |
*/
|
|
64 |
ProfileMmfInfoUtility() {};
|
|
65 |
|
|
66 |
// Destructor.
|
|
67 |
~ProfileMmfInfoUtility() {};
|
|
68 |
|
|
69 |
//internal use
|
|
70 |
/**
|
|
71 |
* Get the header data of the file
|
|
72 |
* @param aFileName specifies the name of the file.
|
|
73 |
* @param aHeaderData contains the header data of the file.
|
|
74 |
* @param aMaxLength the length of header data.
|
|
75 |
*/
|
|
76 |
static void GetFileHeaderDataL(const TDesC& aFileName, TDes8& aHeaderData, TInt aMaxLength);
|
|
77 |
};
|
|
78 |
|
|
79 |
#endif // PROFILEMMFINFOUTILITY_H
|
|
80 |
|
|
81 |
// End of File
|