diff -r dba994e19891 -r 10706f6ad9d2 Helpviewer/SpeedDial/Page.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Helpviewer/SpeedDial/Page.py Sun Mar 11 13:04:30 2012 +0100 @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2012 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a structure to hold the data for a speed dial page. +""" + + +class Page(object): + """ + Class to hold the data for a speed dial page. + """ + def __init__(self, url="", title="", broken=False): + """ + Constructor + + @param url URL of the page (string) + @param title title of the page (string) + """ + self.url = url + self.title = title + self.broken = broken + + def __eq__(self, other): + """ + Public method implementing the equality operator. + + @param other reference to the other page object (Page) + @return flag indicating equality (boolean) + """ + return self.title == other.title and \ + self.url == other.url