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

KIO

accessmanager.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the KDE project.
00003  *
00004  * Copyright (C) 2008 - 2009 Urs Wolfer <uwolfer @ kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef KIO_ACCESSMANAGER_H
00024 #define KIO_ACCESSMANAGER_H
00025 
00026 #include <kio/global.h>
00027 
00028 #include <QtNetwork/QNetworkAccessManager>
00029 #include <QtNetwork/QNetworkRequest>
00030 #include <QtNetwork/QNetworkCookieJar>
00031 
00032 namespace KIO {
00033 
00068 class KIO_EXPORT AccessManager : public QNetworkAccessManager
00069 {
00070     Q_OBJECT
00071 public:
00076     enum Attribute {
00077         MetaData = QNetworkRequest::User, 
00078         KioError 
00079     };
00080 
00081     AccessManager(QObject *parent);
00082 
00083     virtual ~AccessManager();
00084 
00089     void setExternalContentAllowed(bool allowed);
00090 
00096     bool isExternalContentAllowed() const;
00097 
00098 protected:
00105     virtual QNetworkReply *createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData = 0);
00106 
00107 private:
00108     class AccessManagerPrivate;
00109     AccessManagerPrivate* const d;
00110 };
00111 
00112 namespace Integration {
00113 // KDE5: Move AccessManager into the KIO::Integration namespace.
00114 typedef KIO::AccessManager AccessManager;
00115 
00147 class KIO_EXPORT CookieJar : public QNetworkCookieJar
00148 {
00149     Q_OBJECT
00150 public:
00154     explicit CookieJar(QObject *parent = 0);
00155 
00159     ~CookieJar();
00160 
00164     qlonglong windowId() const;
00165 
00178     void setWindowId(qlonglong id);
00179 
00183     void reparseConfiguration();
00184 
00191     QList<QNetworkCookie> cookiesForUrl(const QUrl &url) const;
00192 
00199     bool setCookiesFromUrl(const QList<QNetworkCookie> &cookieList, const QUrl &url);
00200 
00201 private:
00202     class CookieJarPrivate;
00203     CookieJarPrivate* const d;
00204 };
00205 
00206 }
00207 
00208 }
00209 
00210 #endif // KIO_ACCESSMANAGER_H

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal