BTVisualFTP 3.0
|
Provides the main component. More...
Public Member Functions | |
TBTVisualFTP (TComponent AOwner) | |
Constructor. | |
~TBTVisualFTP () | |
Destructor. | |
Loaded () | |
Loaded. | |
MyOnLog (TObject Sender, const TLogLevel LogLevel, const string LogText) | |
The FtpLogger logging method, this method is public so you can add it to your own logging method. | |
Boolean | Connect () |
Connect to the remote server. | |
Boolean | Connected () |
Checks if there is an active Ftp connection. | |
Disconnect () | |
Disconnect from the remote server. | |
Public Attributes | |
TActionList | FtpActionList |
The internal ActionList of the popup menu. | |
Boolean | Busy |
This property is True if file transfer is in progress. | |
TIdFtp | Ftp |
The Internet Direct (Indy) FTP component. | |
TFtpPrivileges | FtpClientPrivileges |
FTP client rights. | |
TStrings | FtpHistory |
A list of directories which have been visited. | |
TLogger | FtpLogger |
Provides logging methods. | |
TOptionsBehaviour | FtpOptionsBehaviour |
Controls the behaviour of the component. | |
TOptionsView | FtpOptionsView |
View options. | |
string | FtpRemoteDir |
Initial remote server directory. | |
string | FtpVersion |
The component version. | |
TNotifyEvent | OnChange |
Event which will be called after changes. | |
TNotifyEvent | OnAfterChangeDir |
Event which will be called after a Cwd. | |
TNotifyEvent | OnConnect |
Event which will be called after a successful Connect. | |
TNotifyEvent | OnDisconnect |
Event which will be called after Disconnect. | |
TNotifyEvent | OnDownloadComplete |
Event which will be called after a download. | |
TFtpProgressEvent | OnFileProgress |
Event which can be used to display the transfer progress for the current file. | |
TFtpProgressEvent | OnFilesProgress |
Event which can be used to display current and total number of files. | |
TGetLocalFileEvent | OnGetLocalFile |
Event which will be called to get a local file name. | |
TNotifyEvent | OnUploadComplete |
Event which will be called after a upload. |
Provides the main component.
Boolean TBTVisualFTP::Connect | ( | ) |
Connect to the remote server.
If | Host property is empty |
If | Username property is empty |
Boolean TBTVisualFTP::Connected | ( | ) |
Checks if there is an active Ftp connection.
TBTVisualFTP::Disconnect | ( | ) |
Disconnect from the remote server.
This method also calls the OnDisconnect event handler.
TBTVisualFTP::Loaded | ( | ) |
Loaded.
If | the IdFTP component is not assigned. |
TBTVisualFTP::MyOnLog | ( | TObject | Sender, |
const TLogLevel | LogLevel, | ||
const string | LogText | ||
) |
The FtpLogger logging method, this method is public so you can add it to your own logging method.
The following example shows a custom log event handler, which also uses a statusbar to display the log message:
procedure TForm1.BTVisualFTP1Log(Sender: TObject; const LogLevel: TLogLevel; const LogMessage: string); begin BTVisualFTP1.MyOnLog(Sender, LogLevel, LogMessage); Statusbar1.SimpleText := LogMessage; end;
This property is True if file transfer is in progress.
The Internet Direct (Indy) FTP component.
This property has to be assigned to a Indy FTP client component.
The internal ActionList of the popup menu.
Allows to set properties of the internal popup menu.
FTP client rights.
A list of directories which have been visited.
Provides logging methods.
Controls the behaviour of the component.
View options.
Initial remote server directory.
The component version.
Event which will be called after a Cwd.
Event which will be called after changes.
Event which will be called after a successful Connect.
Event which will be called after Disconnect.
Event which will be called after a download.
This event will be called even if the download was not successful.
Event which can be used to display the transfer progress for the current file.
Event which can be used to display current and total number of files.
Event which will be called to get a local file name.
If no custom code is assigned to this event handler, a standard SaveDialog will be opened.
Event which will be called after a upload.