• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • kio
  • kio
slaveinterface_p.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 Copyright (C) 2000 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef KIO_SLAVEINTERFACEPRIVATE_H
20#define KIO_SLAVEINTERFACEPRIVATE_H
21
22#include "global.h"
23#include "connection.h"
24#include <QtCore/QTimer>
25#include <QtGui/QWidget>
26#include <QtCore/QPointer>
27#include <QtNetwork/QHostInfo>
28
29static const unsigned int max_nums = 8;
30
31
32class KIO::SlaveInterfacePrivate
33{
34public:
35 SlaveInterfacePrivate()
36 : connection(0), filesize(0), offset(0), last_time(0),
37 nums(0), slave_calcs_speed(false), parentWindow(0)
38 {
39 start_time.tv_sec = 0;
40 start_time.tv_usec = 0;
41 }
42 ~SlaveInterfacePrivate()
43 {
44 delete connection;
45 }
46
47 Connection *connection;
48 QTimer speed_timer;
49
50 // We need some metadata here for our SSL code in messageBox() and for sslMetaData().
51 MetaData sslMetaData;
52
53 KIO::filesize_t sizes[max_nums];
54 long times[max_nums];
55
56 KIO::filesize_t filesize, offset;
57 size_t last_time;
58 struct timeval start_time;
59 uint nums;
60 bool slave_calcs_speed;
61 QPointer<QWidget> parentWindow;
62
63 void slotHostInfo(const QHostInfo& info);
64};
65
66#endif
KIO::MetaData
MetaData is a simple map of key/value strings.
Definition: global.h:397
KIO::SlaveInterfacePrivate
Definition: slaveinterface_p.h:33
KIO::SlaveInterfacePrivate::parentWindow
QPointer< QWidget > parentWindow
Definition: slaveinterface_p.h:61
KIO::SlaveInterfacePrivate::start_time
struct timeval start_time
Definition: slaveinterface_p.h:58
KIO::SlaveInterfacePrivate::times
long times[max_nums]
Definition: slaveinterface_p.h:54
KIO::SlaveInterfacePrivate::slave_calcs_speed
bool slave_calcs_speed
Definition: slaveinterface_p.h:60
KIO::SlaveInterfacePrivate::connection
Connection * connection
Definition: slaveinterface_p.h:47
KIO::SlaveInterfacePrivate::~SlaveInterfacePrivate
~SlaveInterfacePrivate()
Definition: slaveinterface_p.h:42
KIO::SlaveInterfacePrivate::last_time
size_t last_time
Definition: slaveinterface_p.h:57
KIO::SlaveInterfacePrivate::sslMetaData
MetaData sslMetaData
Definition: slaveinterface_p.h:51
KIO::SlaveInterfacePrivate::offset
KIO::filesize_t offset
Definition: slaveinterface_p.h:56
KIO::SlaveInterfacePrivate::filesize
KIO::filesize_t filesize
Definition: slaveinterface_p.h:56
KIO::SlaveInterfacePrivate::SlaveInterfacePrivate
SlaveInterfacePrivate()
Definition: slaveinterface_p.h:35
KIO::SlaveInterfacePrivate::sizes
KIO::filesize_t sizes[max_nums]
Definition: slaveinterface_p.h:53
KIO::SlaveInterfacePrivate::speed_timer
QTimer speed_timer
Definition: slaveinterface_p.h:48
KIO::SlaveInterfacePrivate::slotHostInfo
void slotHostInfo(const QHostInfo &info)
Definition: slaveinterface.cpp:453
KIO::SlaveInterfacePrivate::nums
uint nums
Definition: slaveinterface_p.h:59
connection.h
global.h
KIO::filesize_t
qulonglong filesize_t
64-bit file size
Definition: global.h:57
max_nums
static const unsigned int max_nums
Definition: slaveinterface_p.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal