TROMIMEPart

Overview

This class represents a http://en.wikipedia.org/wiki/MIME MIME] encoded blocks of data. Each TROMIMEPart object can handle any number of nested subparts as new TROMIMEPart objects. It can handle any tree hierarchy structure of nested MIME subparts itself. Basic tasks of this class are decoding and encoding MIME messages.
This class is not used in [Remoting SDK but provides MIME support for OData publishing in Data Abstract. Users have no chance to interact with this class directly.

Location

  • Unit: uROMime.pas

 

constructor Create

Creates a new instance.

constructor Create

AddSubPart

function AddSubPart: TROMIMEPart

Assign

Copies data from a given source.

procedure Assign(Value: TROMIMEPart)

Parameters:

  • Value: Instance whose properties will be copied

AssignSubParts

procedure AssignSubParts(Value: TROMIMEPart)

Parameters:

  • Value:

AttachInside

property AttachInside: boolean read write

Boundary

property Boundary: string read write

CanSubPart

function CanSubPart: boolean

Charset

property Charset: string read write

CharsetCode

property CharsetCode: TROMimeChar read write

Clear

Empties the object.

procedure Clear

ClearSubParts

procedure ClearSubParts

ComposeParts

procedure ComposeParts

ContentID

property ContentID: string read write

ConvertCharset

property ConvertCharset: Boolean read write

DecodedLines

property DecodedLines: TMemoryStream read write

DecodePart

procedure DecodePart

DecodePartHeader

procedure DecodePartHeader

DecomposeParts

procedure DecomposeParts

DefaultCharset

property DefaultCharset: string read write

DeleteSubPart

procedure DeleteSubPart(index: integer)

Parameters:

  • index:

Description

property Description: string read write

Disposition

property Disposition: string read write

EncodePart

procedure EncodePart

EncodePartHeader

procedure EncodePartHeader

Encoding

property Encoding: string read write

EncodingCode

property EncodingCode: TROMimeEncoding read write

FileName

property FileName: string read write

ForcedHTMLConvert

property ForcedHTMLConvert: Boolean read write

GetSubPart

function GetSubPart(index: integer): TROMIMEPart

Parameters:

  • index:

GetSubPartCount

function GetSubPartCount: integer

Headers

property Headers: TStringList read write

Lines

property Lines: TStringList read write

MaxLineLength

property MaxLineLength: integer read write

MaxSubLevel

property MaxSubLevel: integer read write

MimeTypeFromExt

procedure MimeTypeFromExt(Value: string)

Parameters:

  • Value:

OnWalkPart

property OnWalkPart: TROHookWalkPart read write
delegate: procedure OnWalkPart(const Sender: TROMIMEPart)

PartBody

property PartBody: TStringList read write

PostPart

property PostPart: TStringList read write

PrePart

property PrePart: TStringList read write

Primary

property Primary: string read write

PrimaryCode

property PrimaryCode: TROMimePrimary read write

Secondary

property Secondary: string read write

SubLevel

property SubLevel: integer read write

TargetCharset

property TargetCharset: TROMimeChar read write

WalkPart

procedure WalkPart

 

AttachInside

property AttachInside: boolean read write

Boundary

property Boundary: string read write

Charset

property Charset: string read write

CharsetCode

property CharsetCode: TROMimeChar read write

ContentID

property ContentID: string read write

ConvertCharset

property ConvertCharset: Boolean read write

DecodedLines

property DecodedLines: TMemoryStream read write

DefaultCharset

property DefaultCharset: string read write

Description

property Description: string read write

Disposition

property Disposition: string read write

Encoding

property Encoding: string read write

EncodingCode

property EncodingCode: TROMimeEncoding read write

FileName

property FileName: string read write

ForcedHTMLConvert

property ForcedHTMLConvert: Boolean read write

Headers

property Headers: TStringList read write

Lines

property Lines: TStringList read write

MaxLineLength

property MaxLineLength: integer read write

MaxSubLevel

property MaxSubLevel: integer read write

PartBody

property PartBody: TStringList read write

PostPart

property PostPart: TStringList read write

PrePart

property PrePart: TStringList read write

Primary

property Primary: string read write

PrimaryCode

property PrimaryCode: TROMimePrimary read write

Secondary

property Secondary: string read write

SubLevel

property SubLevel: integer read write

TargetCharset

property TargetCharset: TROMimeChar read write

 

constructor Create

Creates a new instance.

constructor Create

AddSubPart

function AddSubPart: TROMIMEPart

Assign

Copies data from a given source.

procedure Assign(Value: TROMIMEPart)

Parameters:

  • Value: Instance whose properties will be copied

AssignSubParts

procedure AssignSubParts(Value: TROMIMEPart)

Parameters:

  • Value:

CanSubPart

function CanSubPart: boolean

Clear

Empties the object.

procedure Clear

ClearSubParts

procedure ClearSubParts

ComposeParts

procedure ComposeParts

DecodePart

procedure DecodePart

DecodePartHeader

procedure DecodePartHeader

DecomposeParts

procedure DecomposeParts

DeleteSubPart

procedure DeleteSubPart(index: integer)

Parameters:

  • index:

EncodePart

procedure EncodePart

EncodePartHeader

procedure EncodePartHeader

GetSubPart

function GetSubPart(index: integer): TROMIMEPart

Parameters:

  • index:

GetSubPartCount

function GetSubPartCount: integer

MimeTypeFromExt

procedure MimeTypeFromExt(Value: string)

Parameters:

  • Value:

WalkPart

procedure WalkPart

 

OnWalkPart

property OnWalkPart: TROHookWalkPart read write
delegate: procedure OnWalkPart(const Sender: TROMIMEPart)