eric6/WebBrowser/FlashCookieManager/FlashCookie.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 7229
53054eb5b15a
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2015 - 2019 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