Class TMimeManager (unit Mimemgr)

Inherits from

TObject

Constructors


constructor Create(fn: string);



Functions

procedure AddMimeType(t: TMimeDefinition);


procedure DeleteDefinition(n: integer);


destructor Destroy;

audio/x-wav

function GetAction(MimeType: string): TMimeAction;


function GetApplication(MimeType: string): string;


function GetDefaultExtension(MimeType: string): string;


function GetDefinition(n: integer): TMimeDefinition;


function GetMimeType(fn: string): string;


function GetNumDefinitions: integer;


function Launch(Filename,MimeType: string): Boolean;


procedure RegisterApplication(MimeType,Application: string);


function SuggestApplication(name: string): string;

prompt always for application/octet-stream

function GetIndex(MimeType: string): integer;


Properties

Events

Variables

Definitions : array[1..2000] of TMimeDefPtr;


filename : string;


NumDefs : integer;



Constructors


constructor Create(fn: string);


Functions


procedure AddMimeType(t: TMimeDefinition);


procedure DeleteDefinition(n: integer);


destructor Destroy;

audio/x-wav


function GetAction(MimeType: string): TMimeAction;


function GetApplication(MimeType: string): string;


function GetDefaultExtension(MimeType: string): string;


function GetDefinition(n: integer): TMimeDefinition;


function GetMimeType(fn: string): string;


function GetNumDefinitions: integer;


function Launch(Filename,MimeType: string): Boolean;


procedure RegisterApplication(MimeType,Application: string);


function SuggestApplication(name: string): string;

prompt always for application/octet-stream


function GetIndex(MimeType: string): integer;


Properties


Events


Variables


Definitions : array[1..2000] of TMimeDefPtr;


filename : string;


NumDefs : integer;