| 1234567891011121314151617181920212223242526272829303132 |
- /*
- This file is part of Telegram Desktop,
- the official desktop application for the Telegram messaging service.
- For license and copyright information please follow this link:
- https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
- */
- #pragma once
- #include "spellcheck/spellcheck_types.h"
- class History;
- class HistoryTranslation final {
- public:
- HistoryTranslation(
- not_null<History*> history,
- const LanguageId &offerFrom);
- void offerFrom(LanguageId id);
- [[nodiscard]] LanguageId offeredFrom() const;
- void translateTo(LanguageId id);
- [[nodiscard]] LanguageId translatedTo() const;
- private:
- const not_null<History*> _history;
- LanguageId _offerFrom;
- LanguageId _translatedTo;
- };
|