• 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
adblockruletextmatchimpl.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) 2010-2013 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 
29 #ifndef ADBLOCKRULETEXTMATCHIMPL_H
30 #define ADBLOCKRULETEXTMATCHIMPL_H
31 
32 #include "adblockruleimpl.h"
33 
34 // Qt Includes
35 #include <QString>
36 
37 namespace MessageViewer {
38 // Simple rule to find a string in the URL
39 class AdBlockRuleTextMatchImpl : public AdBlockRuleImpl
40 {
41 public:
42  explicit AdBlockRuleTextMatchImpl(const QString &filter);
43 
44  bool match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const;
45 
46  static bool isTextMatchFilter(const QString &filter);
47 
48  QString ruleString() const;
49  QString ruleType() const;
50 
51 private:
52  QString m_textToMatch;
53 };
54 }
55 
56 #endif // ADBLOCKRULETEXTMATCHIMPL_H
AdBlockRuleImpl
Definition: adblockruleimpl.h:32
MessageViewer::AdBlockRuleTextMatchImpl::ruleType
QString ruleType() const
Definition: adblockruletextmatchimpl.cpp:93
adblockruleimpl.h
MessageViewer::AdBlockRuleTextMatchImpl::ruleString
QString ruleString() const
Definition: adblockruletextmatchimpl.cpp:87
MessageViewer::AdBlockRuleTextMatchImpl::match
bool match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const
Definition: adblockruletextmatchimpl.cpp:46
MessageViewer::AdBlockRuleTextMatchImpl::AdBlockRuleTextMatchImpl
AdBlockRuleTextMatchImpl(const QString &filter)
Definition: adblockruletextmatchimpl.cpp:36
MessageViewer::AdBlockRuleTextMatchImpl
Definition: adblockruletextmatchimpl.h:39
MessageViewer::AdBlockRuleTextMatchImpl::isTextMatchFilter
static bool isTextMatchFilter(const QString &filter)
Definition: adblockruletextmatchimpl.cpp:61
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