KIO
slaveinterface_p.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef KIO_SLAVEINTERFACEPRIVATE_H 00020 #define KIO_SLAVEINTERFACEPRIVATE_H 00021 00022 #include "global.h" 00023 #include "connection.h" 00024 #include <QtCore/QTimer> 00025 #include <QtGui/QWidget> 00026 #include <QtCore/QPointer> 00027 #include <QtNetwork/QHostInfo> 00028 00029 static const unsigned int max_nums = 8; 00030 00031 00032 class KIO::SlaveInterfacePrivate 00033 { 00034 public: 00035 SlaveInterfacePrivate() 00036 : connection(0), filesize(0), offset(0), last_time(0), 00037 nums(0), slave_calcs_speed(false), parentWindow(0) 00038 { 00039 start_time.tv_sec = 0; 00040 start_time.tv_usec = 0; 00041 } 00042 ~SlaveInterfacePrivate() 00043 { 00044 delete connection; 00045 } 00046 00047 Connection *connection; 00048 QTimer speed_timer; 00049 00050 // We need some metadata here for our SSL code in messageBox() and for sslMetaData(). 00051 MetaData sslMetaData; 00052 00053 KIO::filesize_t sizes[max_nums]; 00054 long times[max_nums]; 00055 00056 KIO::filesize_t filesize, offset; 00057 size_t last_time; 00058 struct timeval start_time; 00059 uint nums; 00060 bool slave_calcs_speed; 00061 QPointer<QWidget> parentWindow; 00062 00063 int messageBox(int type, const QString &text, const QString &caption, 00064 const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName); 00065 00066 void slotHostInfo(const QHostInfo& info); 00067 }; 00068 00069 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:35:03 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:35:03 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.