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