FTPSessionItem Class Reference
Store pure-ftpd session data grabbed from an XML structure. More...
#include <ftpsession.h>
Public Types | |
| enum | Status { Idle, Download, Upload, Error, Unknown } |
Public Methods | |
| FTPSessionItem () | |
| FTPSessionItem (const FTPSessionItem &item) | |
| FTPSessionItem (int percentage, pid_t pid, Status state, unsigned long time, unsigned long bandwidth, unsigned long long resume, unsigned long long current_size, unsigned long long total_size, const QString &account, const QString &file, const QString &host, const QString &localhost, const QString &port) | |
| ~FTPSessionItem () | |
| int | percentage () |
| pid_t | pid () |
| unsigned long | time () |
| unsigned long | bandwidth () |
| QString | account () |
| Status | state () |
| QString | file () |
| QString | host () |
| QString | localhost () |
| QString | port () |
| unsigned long long | resume () |
| unsigned long long | current_size () |
| unsigned long long | total_size () |
Private Attributes | |
| int | _percentage |
| pid_t | _pid |
| Status | _state |
| unsigned long | _time |
| unsigned long | _bandwidth |
| unsigned long long | _resume |
| unsigned long long | _current_size |
| unsigned long long | _total_size |
| QString | _account |
| QString | _file |
| QString | _host |
| QString | _localhost |
| QString | _port |
Detailed Description
Store pure-ftpd session data grabbed from an XML structure.
- Author:
- Claudiu Costin <claudiuc@kde.org>
- Version:
- $Id: classFTPSessionItem.html,v 1.3 2003/07/26 20:14:19 claudiuc Exp $
Definition at line 33 of file ftpsession.h.
Member Enumeration Documentation
|
|
Posible states for an FTP session, as is reported by pure-ftpwho
Definition at line 38 of file ftpsession.h. |
Constructor & Destructor Documentation
|
|
Build an empty FTP session item with attributes set to 0 or null string Definition at line 20 of file ftpsession.cpp. |
|
|
Copy constructor FTP session item. Definition at line 29 of file ftpsession.cpp. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Make a new FTP session item from parameters values
Definition at line 40 of file ftpsession.cpp. |
|
|
Destroy an FTP session object. Definition at line 57 of file ftpsession.cpp. |
Member Function Documentation
|
|
Return the completion percentage for current download or upload operation. Definition at line 91 of file ftpsession.h. References _percentage. |
Member Data Documentation
|
|
User account for which FTP connection is authorized. It is null before authentication is made. Definition at line 137 of file ftpsession.h. |
|
|
Transfer rate for current upload or download operation. Represented as bytes/s. Definition at line 119 of file ftpsession.h. |
|
|
Amount of bytes transfered so far Definition at line 126 of file ftpsession.h. |
|
|
Current transfered file name Definition at line 137 of file ftpsession.h. |
|
|
Host name or IP from which FTP connection come Definition at line 137 of file ftpsession.h. |
|
|
Host name or IP where the pure-ftpd server is bind to serve current session Definition at line 137 of file ftpsession.h. |
|
|
Percentage of current download or upload operation Definition at line 109 of file ftpsession.h. Referenced by percentage(). |
|
|
Pure-ftpd server process PID which manage this session Definition at line 112 of file ftpsession.h. |
|
|
Port where the pure-ftpd server listen to serve current session Definition at line 137 of file ftpsession.h. |
|
|
Byte position from which user restarted the transfer; 0 if not restarted Definition at line 126 of file ftpsession.h. |
|
|
State type of current session Definition at line 115 of file ftpsession.h. |
|
|
Elapsed time from the moment when user connected. Represented as seconds. Definition at line 119 of file ftpsession.h. |
|
|
Size for uploaded or downloaded file Definition at line 126 of file ftpsession.h. |
The documentation for this class was generated from the following files:
