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

messageviewer

  • sources
  • kde-4.12
  • kdepim
  • messageviewer
  • adblock
networkaccessmanager.h
Go to the documentation of this file.
1 /*
2  * This file is part of the KDE project.
3  *
4  * Copyright (c) 2013 Montel Laurent <montel@kde.org>
5  * based on code from kwebkit part Copyright (C) 2009 Dawit Alemayehu <adawit @ kde.org>
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or (at your
10  * option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 #ifndef NETWORKACCESSMANAGER_H
22 #define NETWORKACCESSMANAGER_H
23 
24 #include <KIO/AccessManager>
25 
26 #include <QMultiHash>
27 
28 class QWebFrame;
29 
30 namespace MessageViewer {
31 
35 class MyNetworkAccessManager : public KIO::AccessManager
36 {
37  Q_OBJECT
38 
39 public:
40  explicit MyNetworkAccessManager(QObject *parent = 0);
41 
42 protected:
43  virtual QNetworkReply *createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData = 0);
44 
45 private Q_SLOTS:
46  void slotApplyHidingBlockedElements(bool ok);
47 
48 private:
49  QMultiHash<QWebFrame*, QUrl> mBlockedRequests;
50  QByteArray mAcceptLanguage;
51 };
52 
53 }
54 
55 #endif // NETWORKACCESSMANAGER_P_H
MessageViewer::MyNetworkAccessManager::MyNetworkAccessManager
MyNetworkAccessManager(QObject *parent=0)
Definition: networkaccessmanager.cpp:65
QObject
MessageViewer::MyNetworkAccessManager
Re-implemented for internal reasons.
Definition: networkaccessmanager.h:35
MessageViewer::MyNetworkAccessManager::createRequest
virtual QNetworkReply * createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData=0)
Definition: networkaccessmanager.cpp:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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