summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-19 13:35:14 +0100
committerMontel Laurent <[email protected]>2017-12-19 13:35:14 +0100
commitcb361f58125fd3c7d2e9a04280451e9240c50a22 (patch)
treeb9a4c583ddac66c9008c4df1ca4a7b4629584850
parent4ba1a3de6c16c4d604654b45f256cba9be709f9a (diff)
Allow to save subscription
-rw-r--r--plugins/webengineurlinterceptor/adblock/lib/adblockmanager.cpp8
-rw-r--r--plugins/webengineurlinterceptor/adblock/lib/adblockmanager.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.cpp b/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.cpp
index c12ee65..ae2cdfc 100644
--- a/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.cpp
+++ b/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.cpp
@@ -117,6 +117,14 @@ void AdblockManager::loadSubscriptions()
*/
}
+void AdblockManager::save()
+{
+ foreach (AdBlockSubscription* subscription, mSubscriptions) {
+ subscription->saveSubscription();
+ }
+
+}
+
void AdblockManager::removeDisabledRule(const QString &filter)
{
//TODO
diff --git a/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.h b/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.h
index 314cc0b..8c99494 100644
--- a/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.h
+++ b/plugins/webengineurlinterceptor/adblock/lib/adblockmanager.h
@@ -41,6 +41,8 @@ public:
void addDisabledRule(const QString &str);
void removeDisabledRule(const QString &filter);
+
+ void save();
Q_SIGNALS:
void enabledChanged(bool);