sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
#if (!defined __T_MM_UTIL_H__)
|
sl@0
|
21 |
#define __T_MM_UTIL_H__
|
sl@0
|
22 |
|
sl@0
|
23 |
#include <mmf/common/mmfutilities.h>
|
sl@0
|
24 |
#include <mda/common/audio.h>
|
sl@0
|
25 |
#include <imageconversion.h>
|
sl@0
|
26 |
#include <datawrapper.h>
|
sl@0
|
27 |
#include <mmf/common/mmfvideo.h>
|
sl@0
|
28 |
#include <mmf/common/mmfcontrollerpluginresolver.h>
|
sl@0
|
29 |
#include <midiclientutility.h>
|
sl@0
|
30 |
|
sl@0
|
31 |
class CT_MMUtil
|
sl@0
|
32 |
{
|
sl@0
|
33 |
public:
|
sl@0
|
34 |
static TBool ReadMdaPriority(CDataWrapper& aDataWrapper, const TDesC& aSection, TInt& aPriority);
|
sl@0
|
35 |
static TBool ReadMdaPriorityPreference(CDataWrapper& aDataWrapper, const TDesC& aSection, TMdaPriorityPreference& aPreference);
|
sl@0
|
36 |
static TBool ReadThreadPriority(CDataWrapper& aDataWrapper, const TDesC& aSection, TThreadPriority& aPriority);
|
sl@0
|
37 |
static TBool ReadFourCC(CDataWrapper& aDataWrapper, const TDesC& aSection, TFourCC& aFourCC);
|
sl@0
|
38 |
static TBool ReadImageType(CDataWrapper& aDataWrapper, const TDesC& aSection, CImageDecoder::TImageType& aImageType);
|
sl@0
|
39 |
static TBool ReadIntent(CDataWrapper& aDataWrapper, const TDesC& aSection, ContentAccess::TIntent& aIntent);
|
sl@0
|
40 |
static TBool ReadMidiState(CDataWrapper& aDataWrapper, const TDesC& aSection, const TDesC& aKeyName, TMidiState& aState);
|
sl@0
|
41 |
static TBool ConvertToAudioCaps(const TDesC& aDesc, TMdaAudioDataSettings::TAudioCaps& aAudioCaps);
|
sl@0
|
42 |
static TBool ConvertToAudioFlags(const TDesC& aDesc, TMdaAudioDataSettings::TAudioFlags& aAudioFlags);
|
sl@0
|
43 |
static TBool ConvertToOption(const TDesC& aDesc, CImageDecoder::TOptions& aOption);
|
sl@0
|
44 |
static TBool ConvertToOption(const TDesC& aDesc, CImageEncoder::TOptions& aOption);
|
sl@0
|
45 |
static TBool ConvertToAgentProperty(const TDesC& aDesc, ContentAccess::TAgentProperty& aAgentProperty);
|
sl@0
|
46 |
static const TDesC& GetFourCCString(TUint32 aValue);
|
sl@0
|
47 |
static TBool ReadAudioDataSettings(CDataWrapper& aDataWrapper, TMdaAudioDataSettings& aSettings, const TDesC& aSection);
|
sl@0
|
48 |
static TBool ConvertToDisplayMode(const TDesC& aDisplayModeStr, TDisplayMode& aDisplayMode);
|
sl@0
|
49 |
static TBool ConvertToVideoRotation(const TDesC& aVideoRotationStr, TVideoRotation& aVideoRotation);
|
sl@0
|
50 |
static const TDesC& GetVideoRotationString(TVideoRotation& aVideoRotation);
|
sl@0
|
51 |
static void VerifyMIMETypeArrayL(CDataWrapper& aDataWrapper, const TDesC& aSection, const RFileExtensionMIMETypeArray& aFileExtensionArray);
|
sl@0
|
52 |
static void GetControllerAndFormatUidL(CDataWrapper& aDataWrapper, const TDesC& aFileName, TUid aMediaId, TBool aRecord, TUid& aControllerUid, TUid& aFormatUid);
|
sl@0
|
53 |
static void LogL(CDataWrapper& aDataWrapper, const CMMFControllerImplementationInformation& aControllerInfo);
|
sl@0
|
54 |
|
sl@0
|
55 |
private:
|
sl@0
|
56 |
static void LogL(CDataWrapper& aDataWrapper, const CMMFFormatImplementationInformation& aFormatInfo);
|
sl@0
|
57 |
};
|
sl@0
|
58 |
|
sl@0
|
59 |
#endif /* __T_MM_UTIL_H__ */
|