Helpviewer/FlashCookieManager/FlashCookie.py

Sun, 03 Jul 2016 15:51:26 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 03 Jul 2016 15:51:26 +0200
branch
6_1_x
changeset 5017
d87e1f95b355
parent 4632
ca310db386ed
child 5389
9b1c800daff3
permissions
-rw-r--r--

Adjusted default bookmarks (correction).
(grafted from 337f4a8fe6bb46f96137fb1adc45071d7f8ff14b)

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

# Copyright (c) 2015 - 2016 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