|
||
class CMsvMimeHeaders : public CBase;
Utility class to represent commonly used Mime Headers. This object represents a number of common Mime Headers into a single
class. It is intended that this class is used to represent the Mime Headers for an attachment represented by the CMsvAttachment
class when using the Attachment API. The Mime header data can be associated with an attachment and stored and restored using
the StoreL and RestoreL methods.
CBase
-
Base class for all classes to be instantiated on the heap.
CMsvMimeHeaders
- Utility class to represent commonly used Mime Headers. This object represents a ...
Defined in CMsvMimeHeaders
:
ContainsMimeHeaders(const CMsvAttachment &)
Enquire whether a CMsvAttachment has MIME headers without restoring all the head...ContentBase()const
Gets the Content-Base mime header.ContentDescription()const
Gets the Content-Description mime header.ContentDisposition()const
Gets the Content-Disposition mime header.ContentDispositionParams()
Returns a modifiable descriptor array containing the Content-Disposition paramet...ContentDispositionParams()const
Returns a non-modifiable descriptor array containing the Content-Disposition par...ContentId()const
Gets the Content-Id mime header.ContentLocation()const
Gets the Content-Location mime header.ContentSubType()const
Gets the Content-SubType mime header.ContentTransferEncoding()const
Gets the Content-Transfer Encoding mime header.ContentTransferEncoding(TPtrC8 &)const
Gets the Content-Transfer Encoding mime header.ContentType()const
Gets the Content-Type mime header.ContentTypeParams()
Returns a modifiable descriptor array containing the Content-Type parameters.ContentTypeParams()const
Returns a non-modifiable descriptor array containing the Content-Type parameters...EEncodingType7Bit
7-bit. EEncodingType8Bit
8-bit. EEncodingTypeBASE64
Base64. EEncodingTypeBinary
Binary. EEncodingTypeNone
None. EEncodingTypeQP
QP. EEncodingTypeUU
UU. EEncodingTypeUnknown
Unknown. GetContentTypeValue(const TDesC8 &)const
Gets the Content-Type mime header parameter value.MimeCharset()const
Gets the mime charset header.NewL()
Standard 2-phase construction, creates the mime headers object.NewLC()
Standard 2-phase construction, creates the mime headers object.RelativePath()const
Gets the relative path mime header.Reset()
Resets the mime headers.RestoreL(CMsvAttachment &)
Restores the mime header data.SetContentBaseL(const TDesC8 &)
Sets the Content-Base mime header.SetContentDescriptionL(const TDesC8 &)
Sets the Content-Description mime header.SetContentDispositionL(const TDesC8 &)
Sets the Content-Disposition mime header.SetContentIdL(const TDesC8 &)
Sets the Content-Id mime header.SetContentLocationL(const TDesC16 &)
Sets the Content-Location mime header.SetContentSubTypeL(const TDesC8 &)
Sets the Content-SubType mime header.SetContentTransferEncoding(const TDesC8 &)
Sets the Content-Transfer Encoding mime header.SetContentTypeL(const TDesC8 &)
Sets the Content-Type mime header.SetMimeCharset(TUint)
Sets the mime charset header.SetRelativePathL(const TDesC8 &)
Sets the relative path header.SetSuggestedFilenameL(const TDesC16 &)
Sets the suggested filename mime header.Size()const
Returns the size of all the mime header data.StoreL(CMsvAttachment &)const
Stores the mime header data.SuggestedFilename()const
Gets the suggested filename mime header.TMsvEncodingType
Messaging encoding types. XTypeParams()
Returns a non-modifiable descriptor array containing the X-Type parameters.XTypeParams()const
Returns a modifiable descriptor array containing the X-Type parameters.~CMsvMimeHeaders()
Standard destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C static CMsvMimeHeaders* NewL();
Standard 2-phase construction, creates the mime headers object.
Creates and initailises the mime headers with no data.
|
IMPORT_C static CMsvMimeHeaders* NewLC();
Standard 2-phase construction, creates the mime headers object.
Creates and initailises the mime headers with no data. Leaves a pointer on the cleanup stack.
|
IMPORT_C void StoreL(CMsvAttachment &aAttachment) const;
Stores the mime header data.
Associated and stores all the mime header data stored in this object as an attribute of an attachment object. The RestoreL method should be used to restore the data from the attachment.
|
IMPORT_C void RestoreL(CMsvAttachment &aAttachment);
Restores the mime header data.
Restores all the mime header data from an existing attachment object. This restores mime headers that was stored using the StoreL method. If the attachment does not contain any mime headers, this object is reset.
|
IMPORT_C void SetContentDescriptionL(const TDesC8 &aContentDescription);
Sets the Content-Description mime header.
Over-writes any existing data.
|
IMPORT_C const TDesC8& ContentDescription() const;
Gets the Content-Description mime header.
Returns a zero length descriptor if mime header not set.
|
IMPORT_C void SetContentBaseL(const TDesC8 &aContentBase);
Sets the Content-Base mime header.
Over-writes any existing data.
|
IMPORT_C const TDesC8& ContentBase() const;
Gets the Content-Base mime header.
Returns a zero length descriptor if mime header not set.
|
IMPORT_C void SetContentLocationL(const TDesC16 &aContentLocation);
Sets the Content-Location mime header.
Over-writes any existing data.
|
IMPORT_C const TDesC16& ContentLocation() const;
Gets the Content-Location mime header.
Returns a zero length descriptor if mime header not set.
|
IMPORT_C void SetContentIdL(const TDesC8 &aContentId);
Sets the Content-Id mime header.
Over-writes any existing data.
|
IMPORT_C const TDesC8& ContentId() const;
Gets the Content-Id mime header.
Returns a zero length descriptor if mime header not set.
|
IMPORT_C void SetContentTypeL(const TDesC8 &aContentType);
Sets the Content-Type mime header.
Over-writes any existing data. This mime header contains the beginning part of the mime-type, eg. the 'text' part of 'text/plain'.
|
IMPORT_C const TDesC8& ContentType() const;
Gets the Content-Type mime header.
Returns a zero length descriptor if mime header not set. This mime header contains the beginning part of the mime-type, eg. the 'text' part of 'text/plain'.
|
IMPORT_C void SetContentSubTypeL(const TDesC8 &aSubContentType);
Sets the Content-SubType mime header.
Over-writes any existing data. This mime header contains the end part of the mime-type, eg. the 'plain' part of 'text/plain'.
|
IMPORT_C const TDesC8& ContentSubType() const;
Gets the Content-SubType mime header.
Returns a zero length descriptor if mime header not set. This mime header contains the end part of the mime-type, eg. the 'plain' part of 'text/plain'.
|
IMPORT_C void SetContentDispositionL(const TDesC8 &aContentDisposition);
Sets the Content-Disposition mime header.
Over-writes any existing data.
|
IMPORT_C const TDesC8& ContentDisposition() const;
Gets the Content-Disposition mime header.
Returns a zero length descriptor if mime header not set.
|
IMPORT_C CDesC8Array& ContentTypeParams();
Returns a modifiable descriptor array containing the Content-Type parameters.
|
IMPORT_C CDesC8Array& ContentDispositionParams();
Returns a modifiable descriptor array containing the Content-Disposition parameters.
|
IMPORT_C CDesC8Array& XTypeParams();
Returns a non-modifiable descriptor array containing the X-Type parameters.
|
IMPORT_C const CDesC8Array& ContentTypeParams() const;
Returns a non-modifiable descriptor array containing the Content-Type parameters.
|
IMPORT_C const CDesC8Array& ContentDispositionParams() const;
Returns a non-modifiable descriptor array containing the Content-Disposition parameters.
|
IMPORT_C const CDesC8Array& XTypeParams() const;
Returns a modifiable descriptor array containing the X-Type parameters.
|
IMPORT_C void SetMimeCharset(TUint aMimeCharset);
Sets the mime charset header.
Over-writes any existing data.
|
IMPORT_C TUint MimeCharset() const;
Gets the mime charset header.
|
IMPORT_C void SetSuggestedFilenameL(const TDesC16 &aSuggestedFilename);
Sets the suggested filename mime header.
Over-writes any existing data.
|
IMPORT_C const TDesC16& SuggestedFilename() const;
Gets the suggested filename mime header.
Returns a zero length descriptor if header is not set.
|
IMPORT_C void SetRelativePathL(const TDesC8 &aRelativePath);
Sets the relative path header.
Over-writes any existing data.
|
IMPORT_C const TDesC8& RelativePath() const;
Gets the relative path mime header.
Returns a zero length descriptor if header is not set.
|
IMPORT_C void SetContentTransferEncoding(const TDesC8 &aEncodingType);
Sets the Content-Transfer Encoding mime header.
Over-writes any existing data.
|
IMPORT_C TMsvEncodingType ContentTransferEncoding() const;
Gets the Content-Transfer Encoding mime header.
|
CMsvMimeHeaders::TMsvEncodingType
Messaging encoding types. IMPORT_C TMsvEncodingType ContentTransferEncoding(TPtrC8 &aEncodingType) const;
Gets the Content-Transfer Encoding mime header.
Also provides a descriptor that contains a textual representation of the content-transfer encoding header.
|
|
CMsvMimeHeaders::TMsvEncodingType
Messaging encoding types. IMPORT_C const TPtrC8 GetContentTypeValue(const TDesC8 &aContentTypeParameter) const;
Gets the Content-Type mime header parameter value.
This method finds the specifed parameter and extracts the value for it.
|
|
IMPORT_C void Reset();
Resets the mime headers.
Resets and removes all the mime headers and data that has been set.
IMPORT_C TInt Size() const;
Returns the size of all the mime header data.
Returns the approximate size in bytes of all the mime header data stored by this object. The returned value is a sum of the lengths of all the string data and the size of an integer for each integer type data.
|
IMPORT_C TBool ContainsMimeHeaders(const CMsvAttachment &aAttachment);
Enquire whether a CMsvAttachment
has MIME headers without restoring all the headers.
|
|
TMsvEncodingType
Messaging encoding types.
|