its mandatory to call deleteDialog for the pip screen
[enigma2-plugins.git] / epgrefresh / src / EPGRefreshService.py
1 class EPGRefreshService(object):
2         def __init__(self, sref, duration):
3                 self.sref = str(sref)
4                 self.duration = duration
5
6         def __eq__(self, other):
7                 if hasattr(other, 'sref'):
8                         return self.sref == other.sref
9                 return False
10
11         def __hash__(self):
12                 return self.sref.__hash__()
13
14         def __str__(self):
15                 return self.sref
16
17         def __repr__(self):
18                 return ''.join((
19                         '<EPGRefreshService (',
20                         ', '.join((
21                                 self.sref,
22                                 str(self.duration or '?'),
23                         )),
24                         ')>'
25                 ))