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