From 6d86b51b1030208d99649829cea96de0b64b5ed7 Mon Sep 17 00:00:00 2001 From: Noldor Date: Wed, 2 Sep 2009 15:56:45 +0000 Subject: Some fix in code and doc + removed obsolete code git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3466 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_ftp.cpp | 43 +++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 11 deletions(-) (limited to 'src/modules/objects/class_ftp.cpp') diff --git a/src/modules/objects/class_ftp.cpp b/src/modules/objects/class_ftp.cpp index 6dbf69f57..2e17c7aed 100644 --- a/src/modules/objects/class_ftp.cpp +++ b/src/modules/objects/class_ftp.cpp @@ -4,7 +4,7 @@ // Creation date : Mon Sep 1 08:13:45 2008 GMT by Carbone Alesssandro // // This file is part of the KVirc irc client distribution -// Copyright (C) 2008 Alessandro Carbone (elfonol at gmail dot com) +// Copyright (C) 2009 Alessandro Carbone (elfonol at gmail dot com) // // This program is FREE software. You can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -45,21 +45,42 @@ @description: This class provides a standard FTP functionality.[br] @functions: - !fn: $dataAvailableEvent() + !fn:$dataAvailableEvent() This function is called when some data is available to be read: the parameter specifies the length of the available data in bytes.[br] You can use one of the $read* functions to obtain the data. - - !fn: $connect(,) + !fn: $connect(,) Connects to the FTP server host using port port.The command is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by commandStarted() and commandFinished().[br] - !fn: $abort() - !fn: $login - !fn: $get - !fn: $cd - !fn: $list - !fn: - */ + !fn:$abort() + Aborts the current command and deletes all scheduled commands. + !fn: $login(,) + Logs in to the FTP server with the username user and the password . + The function returns a unique identifier which is passed by commandStarted() and commandFinished().[br] + !fn: $get(,) + Downloads the file from the server. + !fn: $cd() + Changes the working directory of the server to . + !fn: $list() + Lists the contents of directory dir on the FTP server. + !fn: $commandFinishedEvent(,) + Called by KVIrc when the ftp command identified by id has finished. + error is true if an error occurred during the processing; otherwise error is false. + The default implementation emits the [classfnc]$commandFinished[/classfnc]() signal. + !fn: $listInfoEvent() + This event is triggered for each directory entry found by [classfnc]$list[/classfnc]() command. + The default implementation emits the [classfnc]$listInfo[/classfnc]() signal. + !fn: $dataTransferProgressEvent(,) + This event is triggered in response to a [classfnc]get[/classfnc]() or [classfnc]put[/classfnc]() request to indicate the current progress of the download or upload. + The default implementation emits the [classfnc]$dataTransferProgress[/classfnc]() signal. + @signals: + !sg: $commandFinished(,,) + This signal is emitted by the default implementation of [classfnc]$commandFinishedEvent[/classfnc]() + !sg: $listInfo() + This signal is emitted by the default implementation of [classfnc]$listInfoEvent[/classfnc]() + !sg: $dataTransferProgress(,) + This signal is emitted by the default implementation of [classfnc]$dataTransferProgressEvent[/classfnc]() +*/ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_ftp,"ftp","object") KVSO_REGISTER_HANDLER(KviKvsObject_ftp,"connect",functionConnect) -- cgit v1.3.1-10-gc9f91