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

KIO

KIO::AccessManager

KIO::AccessManager Class Reference

A KDE implementation of QNetworkAccessManager. More...

#include <accessmanager.h>

Inheritance diagram for KIO::AccessManager:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Attribute { MetaData = QNetworkRequest::User, KioError }

Public Member Functions

 AccessManager (QObject *parent)
virtual ~AccessManager ()
bool isExternalContentAllowed () const
void setExternalContentAllowed (bool allowed)

Protected Member Functions

virtual QNetworkReply * createRequest (Operation op, const QNetworkRequest &req, QIODevice *outgoingData=0)

Detailed Description

A KDE implementation of QNetworkAccessManager.

Use this class instead of QNetworkAccessManager if you want to integrate with KDE's KIO module for network operations.

Here is a simple example that shows how to set the QtWebKit module to use KDE's KIO for its network operations:

   QWebView *view = new QWebView(this);
   KIO::Integration::AccessManager *manager = new KIO::Integration::AccessManager(view);
   view->page()->setNetworkAccessManager(manager);

To access member functions in the cookiejar class at a later point in your code simply downcast the pointer returned by QWebPage::networkAccessManager as follows:

   KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager*>(view->page()->accessManager());

Please note that this class is in the KIO namespace for backward compatiblity. You should use KIO::Integration::AccessManager to access this class in your code.

IMPORTANTThis class is not a replacement for the standard KDE API. It should ONLY be used to to provide KDE integration in applications that cannot use the standard KDE API directly.

Author:
Urs Wolfer <uwolfer @ kde.org>
Deprecated:
Use the KIO::Integration::AccessManager typedef to access this class instead.
Since:
4.3

Definition at line 68 of file accessmanager.h.


Member Enumeration Documentation

enum KIO::AccessManager::Attribute

Extensions to QNetworkRequest::Attribute enums.

Since:
4.3.2
Enumerator:
MetaData 
KioError 

< Used to send KIO MetaData back and forth.

type: QVariant::Map. Used to send KIO error codes that cannot be mapped into QNetworkReply::NetworkError. type: QVariant::Int

Definition at line 76 of file accessmanager.h.


Constructor & Destructor Documentation

AccessManager::AccessManager ( QObject *  parent  ) 

Definition at line 68 of file accessmanager.cpp.

AccessManager::~AccessManager (  )  [virtual]

Definition at line 73 of file accessmanager.cpp.


Member Function Documentation

QNetworkReply * AccessManager::createRequest ( Operation  op,
const QNetworkRequest &  req,
QIODevice *  outgoingData = 0 
) [protected, virtual]

Reimplemented for internal reasons, the API is not affected.

See also:
QNetworkAccessManager::createRequest

For internal use only.

Reimplemented from QNetworkAccessManager.

Definition at line 88 of file accessmanager.cpp.

bool AccessManager::isExternalContentAllowed (  )  const

Returns true if external content is going to be fetched.

See also:
setExternalContentAllowed

Definition at line 83 of file accessmanager.cpp.

void AccessManager::setExternalContentAllowed ( bool  allowed  ) 

Set allowed to false if you don't want any external content to be fetched.

By default external content is fetched.

Definition at line 78 of file accessmanager.cpp.


The documentation for this class was generated from the following files:
  • accessmanager.h
  • accessmanager.cpp

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