Helpviewer/AdBlock/AdBlockPage.py

changeset 0
de9c2efb9d02
child 13
1af94a91f439
diff -r 000000000000 -r de9c2efb9d02 Helpviewer/AdBlock/AdBlockPage.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Helpviewer/AdBlock/AdBlockPage.py	Mon Dec 28 16:03:33 2009 +0000
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2009 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module implementing a class to apply AdBlock rules to a web page.
+"""
+
+from PyQt4.QtCore import *
+
+import Helpviewer.HelpWindow
+
+class AdBlockPage(QObject):
+    """
+    Class to apply AdBlock rules to a web page.
+    """
+    def __checkRule(self, rule, page, host):
+        """
+        Private method to check, if a rule applies to the given web page and host.
+        
+        @param rule reference to the rule to check (AdBlockRule)
+        @param page reference to the web page (QWebPage)
+        @param host host name (string)
+        """
+        # This is a noop until Qt 4.6 is supported by PyQt4
+        return
+    
+    def applyRulesToPage(self, page):
+        """
+        Public method to applay AdBlock rules to a web page.
+        
+        @param page reference to the web page (QWebPage)
+        """
+        # This is a noop until Qt 4.6 is supported by PyQt4
+        return

eric ide

mercurial