#!/usr/bin/env python3
#
# Copyright (c) 2024 Stormux
# Copyright (c) 2023 Igalia, S.L.
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., Franklin Street, Fifth Floor,
# Boston MA  02110-1301 USA.
#
# Forked from Orca screen reader.
# Cthulhu project: https://git.stormux.org/storm/cthulhu

"""Speech Generator for Sleep Mode. Does nothing."""

__id__        = "$Id$"
__version__   = "$Revision$"
__date__      = "$Date$"
__copyright__ = "Copyright (c) 2024 Stormux"
__license__   = "LGPL"

import cthulhu.debug as debug
import cthulhu.speech_generator as speech_generator

class SpeechGenerator(speech_generator.SpeechGenerator):
    """Speech Generator for Sleep Mode. Does nothing."""

    def generateSpeech(self, obj, **args):
        """Generates speech for the given object. Returns empty list in sleep mode."""
        msg = "SLEEP MODE SPEECH GENERATOR: Generating nothing."
        debug.printMessage(debug.LEVEL_INFO, msg, True)
        print("DEBUG: SLEEP MODE SPEECH GENERATOR CALLED!")
        return []
    
    def generateSelectedItems(self, obj, **args):
        """Override selected items generation."""
        msg = "SLEEP MODE SPEECH GENERATOR: generateSelectedItems - generating nothing."
        debug.printMessage(debug.LEVEL_INFO, msg, True)
        return []
        
    def generateContext(self, obj, **args):
        """Override context generation."""
        msg = "SLEEP MODE SPEECH GENERATOR: generateContext - generating nothing."
        debug.printMessage(debug.LEVEL_INFO, msg, True)
        return []
        
    def generateTitle(self, obj, **args):
        """Override title generation."""
        msg = "SLEEP MODE SPEECH GENERATOR: generateTitle - generating nothing."
        debug.printMessage(debug.LEVEL_INFO, msg, True)
        return []