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

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • misc
  • kpac
proxyscout.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2003 Malte Starostik <malte@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 as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 
21 #ifndef KPAC_PROXYSCOUT_H
22 #define KPAC_PROXYSCOUT_H
23 
24 #include <kdedmodule.h>
25 #include <kcomponentdata.h>
26 #include <kurl.h>
27 
28 #include <QtCore/QMap>
29 #include <QtDBus/QtDBus>
30 
31 class QFileSystemWatcher;
32 
33 namespace KPAC
34 {
35  class Downloader;
36  class Script;
37 
38  class ProxyScout : public KDEDModule
39  {
40  Q_OBJECT
41  Q_CLASSINFO("D-Bus Interface", "org.kde.KPAC.ProxyScout")
42  public:
43  ProxyScout(QObject* parent, const QList<QVariant>&);
44  virtual ~ProxyScout();
45 
46  public Q_SLOTS:
47  Q_SCRIPTABLE QString proxyForUrl( const QString& checkUrl, const QDBusMessage & );
48  Q_SCRIPTABLE QStringList proxiesForUrl( const QString& checkUrl, const QDBusMessage & );
49  Q_SCRIPTABLE Q_NOREPLY void blackListProxy( const QString& proxy );
50  Q_SCRIPTABLE Q_NOREPLY void reset();
51 
52  private Q_SLOTS:
53  void disconnectNetwork();
54  void downloadResult( bool );
55  void proxyScriptFileChanged(const QString&);
56 
57  private:
58  bool startDownload();
59  QStringList handleRequest( const KUrl& url );
60 
61  KComponentData m_componentData;
62  Downloader* m_downloader;
63  Script* m_script;
64 
65  struct QueuedRequest
66  {
67  QueuedRequest() {}
68  QueuedRequest( const QDBusMessage&, const KUrl&, bool sendall = false);
69 
70  QDBusMessage transaction;
71  KUrl url;
72  bool sendAll;
73  };
74  typedef QList< QueuedRequest > RequestQueue;
75  RequestQueue m_requestQueue;
76 
77  typedef QMap< QString, qint64 > BlackList;
78  BlackList m_blackList;
79  qint64 m_suspendTime;
80  int m_debugArea;
81  QFileSystemWatcher* m_watcher;
82  };
83 }
84 
85 #endif // KPAC_PROXYSCOUT_H
86 
87 // vim: ts=4 sw=4 et
KPAC::ProxyScout::~ProxyScout
virtual ~ProxyScout()
qint64
kurl.h
KDEDModule
QMap< QString, qint64 >
KPAC::Script
Definition: script.h:32
KUrl
kdedmodule.h
QObject
KPAC::ProxyScout::ProxyScout
ProxyScout(QObject *parent, const QList< QVariant > &)
KPAC::Downloader
Definition: downloader.h:33
QString
QList< QVariant >
QStringList
KPAC::ProxyScout::proxyForUrl
Q_SCRIPTABLE QString proxyForUrl(const QString &checkUrl, const QDBusMessage &)
QFileSystemWatcher
QDBusMessage
KPAC::ProxyScout::proxiesForUrl
Q_SCRIPTABLE QStringList proxiesForUrl(const QString &checkUrl, const QDBusMessage &)
KPAC::ProxyScout::reset
Q_SCRIPTABLE Q_NOREPLY void reset()
kcomponentdata.h
QObject::parent
QObject * parent() const
KPAC::ProxyScout::blackListProxy
Q_SCRIPTABLE Q_NOREPLY void blackListProxy(const QString &proxy)
KComponentData
KPAC::ProxyScout
Definition: proxyscout.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 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 API Reference

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

Search



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