• 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
adblocksettingwidget.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-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 AD_BLOCK_SETTINGS_WIDGET_H
29 #define AD_BLOCK_SETTINGS_WIDGET_H
30 
31 #include "ui_settings_adblock.h"
32 #include "messageviewer_export.h"
33 
34 // Qt Includes
35 #include <QWidget>
36 
37 namespace MessageViewer {
38 class MESSAGEVIEWER_EXPORT AdBlockSettingWidget : public QWidget, private Ui::adblock
39 {
40  Q_OBJECT
41 
42 public:
43  explicit AdBlockSettingWidget(QWidget *parent = 0);
44 
45  bool changed() const;
46 
47  void save();
48  void doLoadFromGlobalSettings();
49  void doResetToDefaultsOther();
50 
51 
52 Q_SIGNALS:
53  void changed(bool);
54 
55 private Q_SLOTS:
56  void hasChanged();
57  void slotInfoLinkActivated(const QString &);
58  void insertRule();
59  void removeRule();
60  void slotAddFilter();
61  void slotRemoveSubscription();
62  void slotUpdateButtons();
63  void slotShowList();
64  void slotImportFilters();
65  void slotExportFilters();
66  void slotUpdateManualButtons();
67  void slotEditFilter();
68  void slotManualFilterLineEditTextChanged(const QString &);
69  void slotAutomaticFilterDouble(QListWidgetItem *item);
70 private:
71  void addManualFilter(const QString &text);
72  void showAutomaticFilterList(QListWidgetItem *item);
73  enum List {
74  UrlList = Qt::UserRole + 1,
75  PathList = Qt::UserRole + 2,
76  LastUpdateList = Qt::UserRole + 3
77  };
78 
79  bool mChanged;
80 };
81 }
82 
83 #endif // AD_BLOCK_SETTINGS_WIDGET_H
MessageViewer::AdBlockSettingWidget
Definition: adblocksettingwidget.h:38
QWidget
MESSAGEVIEWER_EXPORT
#define MESSAGEVIEWER_EXPORT
Definition: messageviewer_export.h:37
messageviewer_export.h
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