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

KIO

  • 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
31class QFileSystemWatcher;
32
33namespace 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
KComponentData
KDEDModule
KPAC::Downloader
Definition: downloader.h:34
KPAC::ProxyScout
Definition: proxyscout.h:39
KPAC::ProxyScout::ProxyScout
ProxyScout(QObject *parent, const QList< QVariant > &)
KPAC::ProxyScout::reset
Q_SCRIPTABLE Q_NOREPLY void reset()
KPAC::ProxyScout::~ProxyScout
virtual ~ProxyScout()
KPAC::ProxyScout::proxiesForUrl
Q_SCRIPTABLE QStringList proxiesForUrl(const QString &checkUrl, const QDBusMessage &)
KPAC::ProxyScout::blackListProxy
Q_SCRIPTABLE Q_NOREPLY void blackListProxy(const QString &proxy)
KPAC::ProxyScout::proxyForUrl
Q_SCRIPTABLE QString proxyForUrl(const QString &checkUrl, const QDBusMessage &)
KPAC::Script
Definition: script.h:33
KUrl
QList
QMap< QString, qint64 >
QObject
kcomponentdata.h
kdedmodule.h
kurl.h
KPAC
Definition: discovery.cpp:58
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