|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #if (!defined __T_MM_UTIL_H__) |
|
21 #define __T_MM_UTIL_H__ |
|
22 |
|
23 #include <mmf/common/mmfutilities.h> |
|
24 #include <mda/common/audio.h> |
|
25 #include <imageconversion.h> |
|
26 #include <datawrapper.h> |
|
27 #include <mmf/common/mmfvideo.h> |
|
28 #include <mmf/common/mmfcontrollerpluginresolver.h> |
|
29 #include <midiclientutility.h> |
|
30 |
|
31 class CT_MMUtil |
|
32 { |
|
33 public: |
|
34 static TBool ReadMdaPriority(CDataWrapper& aDataWrapper, const TDesC& aSection, TInt& aPriority); |
|
35 static TBool ReadMdaPriorityPreference(CDataWrapper& aDataWrapper, const TDesC& aSection, TMdaPriorityPreference& aPreference); |
|
36 static TBool ReadThreadPriority(CDataWrapper& aDataWrapper, const TDesC& aSection, TThreadPriority& aPriority); |
|
37 static TBool ReadFourCC(CDataWrapper& aDataWrapper, const TDesC& aSection, TFourCC& aFourCC); |
|
38 static TBool ReadImageType(CDataWrapper& aDataWrapper, const TDesC& aSection, CImageDecoder::TImageType& aImageType); |
|
39 static TBool ReadIntent(CDataWrapper& aDataWrapper, const TDesC& aSection, ContentAccess::TIntent& aIntent); |
|
40 static TBool ReadMidiState(CDataWrapper& aDataWrapper, const TDesC& aSection, const TDesC& aKeyName, TMidiState& aState); |
|
41 static TBool ConvertToAudioCaps(const TDesC& aDesc, TMdaAudioDataSettings::TAudioCaps& aAudioCaps); |
|
42 static TBool ConvertToAudioFlags(const TDesC& aDesc, TMdaAudioDataSettings::TAudioFlags& aAudioFlags); |
|
43 static TBool ConvertToOption(const TDesC& aDesc, CImageDecoder::TOptions& aOption); |
|
44 static TBool ConvertToOption(const TDesC& aDesc, CImageEncoder::TOptions& aOption); |
|
45 static TBool ConvertToAgentProperty(const TDesC& aDesc, ContentAccess::TAgentProperty& aAgentProperty); |
|
46 static const TDesC& GetFourCCString(TUint32 aValue); |
|
47 static TBool ReadAudioDataSettings(CDataWrapper& aDataWrapper, TMdaAudioDataSettings& aSettings, const TDesC& aSection); |
|
48 static TBool ConvertToDisplayMode(const TDesC& aDisplayModeStr, TDisplayMode& aDisplayMode); |
|
49 static TBool ConvertToVideoRotation(const TDesC& aVideoRotationStr, TVideoRotation& aVideoRotation); |
|
50 static const TDesC& GetVideoRotationString(TVideoRotation& aVideoRotation); |
|
51 static void VerifyMIMETypeArrayL(CDataWrapper& aDataWrapper, const TDesC& aSection, const RFileExtensionMIMETypeArray& aFileExtensionArray); |
|
52 static void GetControllerAndFormatUidL(CDataWrapper& aDataWrapper, const TDesC& aFileName, TUid aMediaId, TBool aRecord, TUid& aControllerUid, TUid& aFormatUid); |
|
53 static void LogL(CDataWrapper& aDataWrapper, const CMMFControllerImplementationInformation& aControllerInfo); |
|
54 |
|
55 private: |
|
56 static void LogL(CDataWrapper& aDataWrapper, const CMMFFormatImplementationInformation& aFormatInfo); |
|
57 }; |
|
58 |
|
59 #endif /* __T_MM_UTIL_H__ */ |