WebBrowser/FlashCookieManager/FlashCookie.py

branch
QtWebEngine
changeset 4751
f745a556fd6f
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
4750:9fc5d2625d61 4751:f745a556fd6f
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2015 - 2016 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