eric6/Helpviewer/FlashCookieManager/FlashCookie.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
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