• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.8.5 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 <QtNetwork/QHostInfo>
26 
27 static const unsigned int max_nums = 8;
28 
29 class QWidget;
30 
31 class KIO::SlaveInterfacePrivate
32 {
33 public:
34  SlaveInterfacePrivate()
35  : connection(0), filesize(0), offset(0), last_time(0),
36  nums(0), slave_calcs_speed(false), parentWindow(0)
37  {
38  start_time.tv_sec = 0;
39  start_time.tv_usec = 0;
40  }
41  ~SlaveInterfacePrivate()
42  {
43  delete connection;
44  }
45 
46  Connection *connection;
47  QTimer speed_timer;
48 
49  // We need some metadata here for our SSL code in messageBox() and for sslMetaData().
50  MetaData sslMetaData;
51 
52  KIO::filesize_t sizes[max_nums];
53  long times[max_nums];
54 
55  KIO::filesize_t filesize, offset;
56  size_t last_time;
57  struct timeval start_time;
58  uint nums;
59  bool slave_calcs_speed;
60  QWidget* parentWindow;
61 
62  int messageBox(int type, const QString &text, const QString &caption,
63  const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName);
64 
65  void slotHostInfo(const QHostInfo& info);
66 };
67 
68 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Fri Nov 16 2012 15:10:14 by doxygen 1.8.1 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.8.5 API Reference

Skip menu "kdelibs-4.8.5 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