TROMIMEPart

Overview

This class represents a 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

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

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

Lines

property Lines: TStringList read

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

PostPart

property PostPart: TStringList read

PrePart

property PrePart: TStringList read

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

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

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

Lines

property Lines: TStringList read

MaxLineLength

property MaxLineLength: Integer read write

MaxSubLevel

property MaxSubLevel: Integer read write

PartBody

property PartBody: TStringList read

PostPart

property PostPart: TStringList read

PrePart

property PrePart: TStringList read

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)