# Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
# 
# This file is part of PyQt6.
# 
# This software is licensed for use under the terms of the Riverbank Commercial
# License.  See the file LICENSE for more details.  It is supplied WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.


class Context:
    """ Encapsulate a message context. """

    def __init__(self, name):
        """ Initialise the context. """

        self.name = name
        self.messages = []


class EmbeddedComments:
    """ Encapsulate information for a translator embedded in comments. """

    def __init__(self):
        """ Initialise the object. """

        self.message_id = ''
        self.extra_comments = []
        self.extras = []


class Message:
    """ Encapsulate a message. """

    def __init__(self, filename, line_nr, source, comment, numerus):
        """ Initialise the message. """

        self.filename = filename
        self.line_nr = line_nr
        self.source = source
        self.comment = comment
        self.numerus = numerus
        self.embedded_comments = EmbeddedComments()
