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 <QtNetwork/QHostInfo> 00026 00027 static const unsigned int max_nums = 8; 00028 00029 class QWidget; 00030 00031 class KIO::SlaveInterfacePrivate 00032 { 00033 public: 00034 SlaveInterfacePrivate() 00035 : connection(0), filesize(0), offset(0), last_time(0), 00036 nums(0), slave_calcs_speed(false), parentWindow(0) 00037 { 00038 start_time.tv_sec = 0; 00039 start_time.tv_usec = 0; 00040 } 00041 ~SlaveInterfacePrivate() 00042 { 00043 delete connection; 00044 } 00045 00046 Connection *connection; 00047 QTimer speed_timer; 00048 00049 // We need some metadata here for our SSL code in messageBox() and for sslMetaData(). 00050 MetaData sslMetaData; 00051 00052 KIO::filesize_t sizes[max_nums]; 00053 long times[max_nums]; 00054 00055 KIO::filesize_t filesize, offset; 00056 size_t last_time; 00057 struct timeval start_time; 00058 uint nums; 00059 bool slave_calcs_speed; 00060 QWidget* parentWindow; 00061 00062 int messageBox(int type, const QString &text, const QString &caption, 00063 const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName); 00064 00065 void slotHostInfo(const QHostInfo& info); 00066 }; 00067 00068 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 09:50:38 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 09:50:38 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.