Helpviewer/FlashCookieManager/FlashCookie.py

changeset 4359
ac1dda9f3f19
child 4370
54dbb658f9e6
equal deleted inserted replaced
4357:815d1f3116ff 4359:ac1dda9f3f19
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2015 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the Flash cookie class.
8 """
9
10 from __future__ import unicode_literals
11
12 from PyQt5.QtCore import QDateTime
13
14
15 class FlashCookie(object):
16 """
17 Class implementing the Flash cookie.
18 """
19 def __init(self):
20 """
21 Constructor
22 """
23 self.name = ""
24 self.origin = ""
25 self.size = 0
26 self.path = ""
27 self.contents = ""
28 self.lastModified = QDateTime()
29
30 def __eq__(self, other):
31 """
32 Special method to compare to another Flash cookie.
33
34 @param other reference to the other Flash cookie
35 @type FlashCookie
36 @return flag indicating equality of the two cookies
37 @rtype bool
38 """
39 return (self.name == other.name and
40 self.path == other.path)

eric ide

mercurial