// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SETTINGS_UI_BUNDLED_LANGUAGE_CELLS_LANGUAGE_ITEM_H_
#define IOS_CHROME_BROWSER_SETTINGS_UI_BUNDLED_LANGUAGE_CELLS_LANGUAGE_ITEM_H_

#import "base/i18n/language_tag.h"
#import "ios/chrome/browser/shared/ui/table_view/cells/table_view_multi_detail_text_item.h"

// Contains the model data for a language in the Language Settings page.
@interface LanguageItem : TableViewMultiDetailTextItem

- (instancetype)initWithType:(NSInteger)type
                 languageTag:(base::i18n::LanguageTag)languageTag;

// The language tag for this language.
@property(nonatomic, assign) base::i18n::LanguageTag languageTag;

// Whether the language is the Translate target language.
@property(nonatomic, assign, getter=isTargetLanguage) BOOL targetLanguage;

// Whether the language is Translate-blocked (Translate is not offered).
@property(nonatomic, assign, getter=isBlocked) BOOL blocked;

// Whether the language is supported by the Translate server.
@property(nonatomic, assign) BOOL supportsTranslate;

// Whether Translate can be offered for the language (it can be unblocked). True
// if the language is supported by the Translate server, it is not the last
// Translate-blocked language, and it is not the Translate target language.
@property(nonatomic, assign) BOOL canOfferTranslate;

@end

#endif  // IOS_CHROME_BROWSER_SETTINGS_UI_BUNDLED_LANGUAGE_CELLS_LANGUAGE_ITEM_H_
