sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef MMFFORMATIMPLEMENTATIONINFORMATIONBODY_H
|
sl@0
|
17 |
#define MMFFORMATIMPLEMENTATIONINFORMATIONBODY_H
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <e32base.h>
|
sl@0
|
20 |
#include <mmf/common/mmfcontrollerpluginresolver.h>
|
sl@0
|
21 |
|
sl@0
|
22 |
/**
|
sl@0
|
23 |
This is the Body for CMMFFormatImplementationInformation. For descriptions of methods, see
|
sl@0
|
24 |
CMMFFormatImplementationInformation itself.
|
sl@0
|
25 |
*/
|
sl@0
|
26 |
NONSHARABLE_CLASS(CMMFFormatImplementationInformation::CBody) : public CBase
|
sl@0
|
27 |
{
|
sl@0
|
28 |
public:
|
sl@0
|
29 |
/**
|
sl@0
|
30 |
Constructs a new format implementation information body object.
|
sl@0
|
31 |
|
sl@0
|
32 |
@return The new object created.
|
sl@0
|
33 |
*/
|
sl@0
|
34 |
static CBody* NewL();
|
sl@0
|
35 |
|
sl@0
|
36 |
/**
|
sl@0
|
37 |
Constructs a new format implementation information body object.
|
sl@0
|
38 |
|
sl@0
|
39 |
@return The new object created. Note that this will be on the cleanup stack.
|
sl@0
|
40 |
*/
|
sl@0
|
41 |
static CBody* NewLC();
|
sl@0
|
42 |
|
sl@0
|
43 |
/**
|
sl@0
|
44 |
Destructor
|
sl@0
|
45 |
*/
|
sl@0
|
46 |
virtual ~CBody();
|
sl@0
|
47 |
|
sl@0
|
48 |
// public functions forwarded from CMMFFormatImplementationInformation
|
sl@0
|
49 |
const CDesC8Array& SupportedFileExtensions() const;
|
sl@0
|
50 |
const CDesC8Array& SupportedMimeTypes() const;
|
sl@0
|
51 |
const CDesC8Array& SupportedHeaderData() const;
|
sl@0
|
52 |
TBool SupportsFileExtension(const TDesC8& aFileExtension) const;
|
sl@0
|
53 |
TBool SupportsMimeType(const TDesC8& aMimeType) const;
|
sl@0
|
54 |
TBool SupportsHeaderDataL(const TDesC8& aHeaderData) const;
|
sl@0
|
55 |
TBool SupportsCustomInterfaces() const;
|
sl@0
|
56 |
|
sl@0
|
57 |
/**
|
sl@0
|
58 |
Adds a file extension to the array of extensions supported by this format.
|
sl@0
|
59 |
*/
|
sl@0
|
60 |
void AddFileExtensionL(const TDesC8& aData);
|
sl@0
|
61 |
|
sl@0
|
62 |
/**
|
sl@0
|
63 |
Adds a mime type to the array of types supported by this format.
|
sl@0
|
64 |
*/
|
sl@0
|
65 |
void AddMimeTypeL(const TDesC8& aData);
|
sl@0
|
66 |
|
sl@0
|
67 |
/**
|
sl@0
|
68 |
Adds a chunk of header data to the array of chunks supported by this format.
|
sl@0
|
69 |
*/
|
sl@0
|
70 |
void AddHeaderDataL(const TDesC8& aData);
|
sl@0
|
71 |
|
sl@0
|
72 |
/**
|
sl@0
|
73 |
Sets the flag that indicates whether custom interfaces are supported.
|
sl@0
|
74 |
*/
|
sl@0
|
75 |
void SetSupportsCustomInterfaces(const TBool aSupportsCustomInterfaces);
|
sl@0
|
76 |
|
sl@0
|
77 |
protected:
|
sl@0
|
78 |
|
sl@0
|
79 |
/**
|
sl@0
|
80 |
Constructor
|
sl@0
|
81 |
*/
|
sl@0
|
82 |
CBody();
|
sl@0
|
83 |
|
sl@0
|
84 |
/**
|
sl@0
|
85 |
2nd phase constructor
|
sl@0
|
86 |
*/
|
sl@0
|
87 |
void ConstructL();
|
sl@0
|
88 |
|
sl@0
|
89 |
private:
|
sl@0
|
90 |
/**
|
sl@0
|
91 |
The file extensions supported by this format.
|
sl@0
|
92 |
*/
|
sl@0
|
93 |
CDesC8Array* iFileExtensions;
|
sl@0
|
94 |
|
sl@0
|
95 |
/**
|
sl@0
|
96 |
The mime types supported by this format.
|
sl@0
|
97 |
*/
|
sl@0
|
98 |
CDesC8Array* iMimeTypes;
|
sl@0
|
99 |
|
sl@0
|
100 |
/**
|
sl@0
|
101 |
The header data chunks supported by this format.
|
sl@0
|
102 |
*/
|
sl@0
|
103 |
CDesC8Array* iHeaderData;
|
sl@0
|
104 |
|
sl@0
|
105 |
/**
|
sl@0
|
106 |
Indicates whether this format supports custom interfaces
|
sl@0
|
107 |
*/
|
sl@0
|
108 |
TBool iSupportsCustomInterfaces;
|
sl@0
|
109 |
};
|
sl@0
|
110 |
|
sl@0
|
111 |
#endif
|