TPOP3Client

From Ultibo.org
Jump to: navigation, search

Return to Unit POP3


Description


To be documented

Class definitions



TPOP3Client = class(TWinsock2TCPClient)

public
constructor Create;  
destructor Destroy; override;  
private
FOnRequest:TPOP3ClientNotifyEvent;  
FOnReply:TPOP3ClientNotifyEvent;  
 
FOnRequestStart:TNotifyEvent;  
FOnRequestEnd:TNotifyEvent;  
 
FBuffer:TPOP3Buffer; Buffer for received data
protected
function GetReply(var AReply:String):Boolean;  
function SendRequest(const ARequest:String):Boolean;  
public
property OnRequest:TPOP3ClientNotifyEvent read FOnRequest write FOnRequest;  
property OnReply:TPOP3ClientNotifyEvent read FOnReply write FOnReply;  
 
property OnRequestStart:TNotifyEvent read FOnRequestStart write FOnRequestStart;  
property OnRequestEnd:TNotifyEvent read FOnRequestEnd write FOnRequestEnd;  
 
property Buffer:TPOP3Buffer read FBuffer;  
 
function DoConn(const AHost,APort:String; var AReply:String):Boolean;  
function DoStat(var AReply:String):Boolean;  
function DoList(const AMessage:String; var AReply:String):Boolean;  
function DoRetr(const AMessage:String; var AReply:String):Boolean;  
function DoDele(const AMessage:String; var AReply:String):Boolean;  
function DoNoop(var AReply:String):Boolean;  
function DoRset(var AReply:String):Boolean;  
function DoQuit(var AReply:String):Boolean;  
 
function DoTop(const AMessage,ACount:String; var AReply:String):Boolean;  
function DoUidl(const AMessage:String; var AReply:String):Boolean;  
function DoUser(const AUsername:String; var AReply:String):Boolean;  
function DoPass(const APassword:String; var AReply:String):Boolean;  
function DoApop(const AUsername,ADigest:String; var AReply:String):Boolean;  


Function declarations



constructor TPOP3Client.Create;
Description: To be documented
Note None documented


destructor TPOP3Client.Destroy;
Description: To be documented
Note None documented


function TPOP3Client.GetReply(var AReply:String):Boolean;
Description: To be documented
Note None documented


function TPOP3Client.SendRequest(const ARequest:String):Boolean;
Description: To be documented
Note None documented


function TPOP3Client.DoConn(const AHost,APort:String; var AReply:String):Boolean;
Description: POP3 server will return +OK for success and -ERR for failure
Note None documented


function TPOP3Client.DoStat(var AReply:String):Boolean;
Description: POP3 server will return +OK for success and -ERR for failure
Note None documented


function TPOP3Client.DoList(const AMessage:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoRetr(const AMessage:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoDele(const AMessage:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoNoop(var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoRset(var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoQuit(var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoTop(const AMessage,ACount:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoUidl(const AMessage:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoUser(const AUsername:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoPass(const APassword:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


function TPOP3Client.DoApop(const AUsername,ADigest:String; var AReply:String):Boolean;
Description: To be documented
Note POP3 server will return +OK for success and -ERR for failure


Return to Unit Reference