kcmpureftpd

  Main Page   Compound List   File List   Compound Members
Main Page   Compound List   File List   Compound Members  

ftpsession.cpp

00001 /***************************************************************************
00002                           ftpsession.cpp  -  pure-ftpd FTP session data
00003                              -------------------
00004     begin                : Wed Feb 6 2002
00005     copyright            : (C) 2002 by Claudiu Costin
00006     email                : claudiuc@kde.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "ftpsession.h"
00019 
00020 FTPSessionItem::FTPSessionItem(): _percentage(0), _pid(0), _state(Unknown), _time(0),
00021                                                                 _bandwidth(0),
00022                       _resume(0), _current_size(0), _total_size(0),
00023                       _account(QString::null),
00024                       _file(QString::null), _host(QString::null),
00025                       _localhost(QString::null), _port(QString::null)
00026 {
00027 }
00028 
00029 FTPSessionItem::FTPSessionItem(const FTPSessionItem& item):
00030                 _percentage(item._percentage), _pid(item._pid), _state(item._state), _time(item._time),
00031                                                                 _bandwidth(item._bandwidth),
00032                                                           _resume(item._resume), _current_size(item._current_size),
00033                                                           _total_size(item._total_size),
00034                 _account(item._account),
00035                 _file(item._file), _host(item._host), _localhost(item._localhost),
00036                 _port(item._port)
00037 {
00038 }
00039 
00040 FTPSessionItem::FTPSessionItem(int percentage, pid_t pid, Status state, unsigned long time,
00041                                                                                          unsigned long bandwidth,
00042                                                                                          unsigned long long resume, unsigned long long current_size,
00043                                                                                          unsigned long long total_size,
00044                        const QString &account,
00045                        const QString &file, const QString &host,
00046                        const QString &localhost, const QString &port) :
00047                 _percentage(percentage), _pid(pid), _state(state), _time(time),
00048                                                                 _bandwidth(bandwidth),
00049                                                           _resume(resume), _current_size(current_size),
00050                                                           _total_size(total_size),
00051                 _account(account),
00052                 _file(file), _host(host), _localhost(localhost),
00053                 _port(port)
00054 {
00055 }
00056 
00057 FTPSessionItem::~FTPSessionItem(){
00058 }
00059 
Generated on Thu Jul 24 01:57:07 2003 by doxygen 1.2.15.