eric6/Helpviewer/FlashCookieManager/FlashCookie.py

Tue, 20 Aug 2019 17:07:44 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 20 Aug 2019 17:07:44 +0200
branch
micropython
changeset 7144
de779a22396a
parent 6942
2602857055c5
permissions
-rw-r--r--

Revision <7140> closed.

# -*- coding: utf-8 -*-

# Copyright (c) 2015 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing the Flash cookie class.
"""

from __future__ import unicode_literals

from PyQt5.QtCore import QDateTime


class FlashCookie(object):
    """
    Class implementing the Flash cookie.
    """
    def __init__(self):
        """
        Constructor
        """
        self.name = ""
        self.origin = ""
        self.size = 0
        self.path = ""
        self.contents = ""
        self.lastModified = QDateTime()
    
    def __eq__(self, other):
        """
        Special method to compare to another Flash cookie.
        
        @param other reference to the other Flash cookie
        @type FlashCookie
        @return flag indicating equality of the two cookies
        @rtype bool
        """
        return (self.name == other.name and
                self.path == other.path)

eric ide

mercurial