/* * Copyright 2013-2014, Stephan Aßmus . * Copyright 2016-2023, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef LANGUAGE_H #define LANGUAGE_H #include #include /*! This class represents a language that is supported by the Haiku Depot Server system. This may differ from the set of languages that are supported in the platform itself. */ class Language : public BReferenceable, public BLanguage { public: Language(const char* language, const BString& serverName, bool isPopular); Language(const Language& other); status_t GetName(BString& name, const BLanguage* displayLanguage = NULL ) const; bool IsPopular() const { return fIsPopular; } int Compare(const Language& language) const; private: BString fServerName; bool fIsPopular; }; typedef BReference LanguageRef; extern bool IsLanguageBefore(const LanguageRef& l1, const LanguageRef& l2); #endif // LANGUAGE_H