os/mm/mmlibs/mmfw/src/ControllerFramework/MMFFormatImplementationInformationBody.h
First public contribution.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef MMFFORMATIMPLEMENTATIONINFORMATIONBODY_H
17 #define MMFFORMATIMPLEMENTATIONINFORMATIONBODY_H
20 #include <mmf/common/mmfcontrollerpluginresolver.h>
23 This is the Body for CMMFFormatImplementationInformation. For descriptions of methods, see
24 CMMFFormatImplementationInformation itself.
26 NONSHARABLE_CLASS(CMMFFormatImplementationInformation::CBody) : public CBase
30 Constructs a new format implementation information body object.
32 @return The new object created.
37 Constructs a new format implementation information body object.
39 @return The new object created. Note that this will be on the cleanup stack.
41 static CBody* NewLC();
48 // public functions forwarded from CMMFFormatImplementationInformation
49 const CDesC8Array& SupportedFileExtensions() const;
50 const CDesC8Array& SupportedMimeTypes() const;
51 const CDesC8Array& SupportedHeaderData() const;
52 TBool SupportsFileExtension(const TDesC8& aFileExtension) const;
53 TBool SupportsMimeType(const TDesC8& aMimeType) const;
54 TBool SupportsHeaderDataL(const TDesC8& aHeaderData) const;
55 TBool SupportsCustomInterfaces() const;
58 Adds a file extension to the array of extensions supported by this format.
60 void AddFileExtensionL(const TDesC8& aData);
63 Adds a mime type to the array of types supported by this format.
65 void AddMimeTypeL(const TDesC8& aData);
68 Adds a chunk of header data to the array of chunks supported by this format.
70 void AddHeaderDataL(const TDesC8& aData);
73 Sets the flag that indicates whether custom interfaces are supported.
75 void SetSupportsCustomInterfaces(const TBool aSupportsCustomInterfaces);
91 The file extensions supported by this format.
93 CDesC8Array* iFileExtensions;
96 The mime types supported by this format.
98 CDesC8Array* iMimeTypes;
101 The header data chunks supported by this format.
103 CDesC8Array* iHeaderData;
106 Indicates whether this format supports custom interfaces
108 TBool iSupportsCustomInterfaces;