Cockatrice/libcockatrice_interfaces/libcockatrice/interfaces/interface_chat_settings_provider.h
Lukas Brübach 9dac371ead [Client] Add option to use game time in game log timestamps (#2202)
Game log timestamps showed the local clock time, which is meaningless in
a replay or in a log read after the fact — nobody can tell when a play
happened relative to the game.

Add a "Use game time instead of local time in game logs" setting. When
enabled, the message log stamps entries with the elapsed game time
(HH:MM:SS since the game started); regular chat views keep the local
clock.
2026-09-06 23:24:14 +02:00

27 lines
1.2 KiB
C++

#ifndef COCKATRICE_INTERFACE_CHAT_SETTINGS_PROVIDER_H
#define COCKATRICE_INTERFACE_CHAT_SETTINGS_PROVIDER_H
#include <QString>
class IChatSettingsProvider
{
public:
virtual ~IChatSettingsProvider() = default;
[[nodiscard]] virtual bool getChatMention() const = 0;
[[nodiscard]] virtual bool getChatMentionCompleter() const = 0;
[[nodiscard]] virtual QString getChatMentionColor() const = 0;
[[nodiscard]] virtual QString getChatHighlightColor() const = 0;
[[nodiscard]] virtual bool getChatMentionForeground() const = 0;
[[nodiscard]] virtual bool getChatHighlightForeground() const = 0;
[[nodiscard]] virtual bool getIgnoreUnregisteredUsers() const = 0;
[[nodiscard]] virtual bool getIgnoreUnregisteredUserMessages() const = 0;
[[nodiscard]] virtual bool getIgnoreNonBuddyUserMessages() const = 0;
[[nodiscard]] virtual bool getShowMessagePopup() const = 0;
[[nodiscard]] virtual bool getShowMentionPopup() const = 0;
[[nodiscard]] virtual bool getRoomHistory() const = 0;
[[nodiscard]] virtual bool getUseGameTime() const = 0;
[[nodiscard]] virtual QString getHighlightWords() const = 0;
};
#endif // COCKATRICE_INTERFACE_CHAT_SETTINGS_PROVIDER_H