aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/blockersubscription.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-28 10:18:08 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-28 10:18:08 +0100
commit7f6c9b22d1016aa0dba709495fabf41397676039 (patch)
tree35898077b84be953c0645262aaa9470802b5267b /src/webengine/blockersubscription.h
parentFixed crash when closing the first tab (diff)
downloadsmolbote-7f6c9b22d1016aa0dba709495fabf41397676039.tar.xz
Blocker rewrites
Some code commenting Moved Blocker files for src/blocker Keyboard shortcut for Blocker dialog
Diffstat (limited to 'src/webengine/blockersubscription.h')
-rw-r--r--src/webengine/blockersubscription.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/webengine/blockersubscription.h b/src/webengine/blockersubscription.h
deleted file mode 100644
index b8e3b9a..0000000
--- a/src/webengine/blockersubscription.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/** LICENSE ********************************************************************
- **
- ** smolbote: yet another qute browser
- ** Copyright (C) 2017 Xian Nox
- **
- ** This program is free software: you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation, either version 3 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program. If not, see <http://www.gnu.org/licenses/>.
- **
- ******************************************************************************/
-
-#ifndef URLINTERCEPTORSUBSCRIPTION_H
-#define URLINTERCEPTORSUBSCRIPTION_H
-
-#include <QObject>
-#include <QDateTime>
-#include "blockerrule.h"
-
-class BlockerSubscription : public QObject
-{
- Q_OBJECT
-public:
- explicit BlockerSubscription(QObject *parent = 0);
-
- int loadFromFile(const QString &file);
-
- const QString title();
- const QString homepage();
- const QString license();
- const QString version();
- const QDateTime lastModified();
- const QDateTime expires();
-
- const QList<BlockerRule*> urlBlacklist();
- const QList<BlockerRule*> urlWhitelist();
-
-signals:
-
-public slots:
-
-private:
- void parseComment(const QString &line);
-
- QString m_title;
- QString m_homepage;
- QString m_license;
-
- QString m_version;
- QDateTime m_lastModified;
- QDateTime m_expires;
-
- QList<BlockerRule*> m_urlWhitelist; // exception rules
- QList<BlockerRule*> m_urlBlacklist; // block rules
- // element exceptions
- // element blocking
-};
-
-#endif // URLINTERCEPTORSUBSCRIPTION_H