• 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
adblockrulefallbackimpl.h
Go to the documentation of this file.
1 /* ============================================================
2 *
3 * This file is a part of the rekonq project
4 * Copyright (c) 2013 Montel Laurent <montel@kde.org>
5 * based on code from rekonq
6 * Copyright (C) 2010-2011 by Benjamin Poulain <ikipou at gmail dot com>
7 * Copyright (C) 2011-2012 by Andrea Diamantini <adjam7 at gmail dot com>
8 *
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License or (at your option) version 3 or any later version
14 * accepted by the membership of KDE e.V. (or its successor approved
15 * by the membership of KDE e.V.), which shall act as a proxy
16 * defined in Section 14 of version 3 of the license.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 *
26 * ============================================================ */
27 
28 #ifndef ADBLOCKRULEFALLBACKIMPL_H
29 #define ADBLOCKRULEFALLBACKIMPL_H
30 
31 #include "adblockruleimpl.h"
32 
33 // Qt Includes
34 #include <QRegExp>
35 #include <QString>
36 #include <QSet>
37 namespace MessageViewer {
38 class AdBlockRuleFallbackImpl : public AdBlockRuleImpl
39 {
40 public:
41  explicit AdBlockRuleFallbackImpl(const QString &filter);
42 
43  bool match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const;
44 
45  QString ruleString() const;
46  QString ruleType() const;
47 
48 private:
49  QString convertPatternToRegExp(const QString &wildcardPattern);
50 
51  QRegExp m_regExp;
52  QSet<QString> m_whiteDomains;
53  QSet<QString> m_blackDomains;
54 
55  bool m_unsupported;
56  bool m_thirdPartyOption;
57  bool m_thirdPartyOptionReversed;
58 };
59 }
60 
61 #endif // ADBLOCKRULEFALLBACKIMPL_H
MessageViewer::AdBlockRuleFallbackImpl
Definition: adblockrulefallbackimpl.h:38
AdBlockRuleImpl
Definition: adblockruleimpl.h:32
MessageViewer::AdBlockRuleFallbackImpl::ruleString
QString ruleString() const
Definition: adblockrulefallbackimpl.cpp:197
MessageViewer::AdBlockRuleFallbackImpl::match
bool match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const
Definition: adblockrulefallbackimpl.cpp:113
adblockruleimpl.h
MessageViewer::AdBlockRuleFallbackImpl::ruleType
QString ruleType() const
Definition: adblockrulefallbackimpl.cpp:203
MessageViewer::AdBlockRuleFallbackImpl::AdBlockRuleFallbackImpl
AdBlockRuleFallbackImpl(const QString &filter)
Definition: adblockrulefallbackimpl.cpp:46
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