1/*
2 * Copyright 2013-2014, Stephan A��mus <superstippi@gmx.de>.
3 * Copyright 2016-2023, Andrew Lindesay <apl@lindesay.co.nz>.
4 * All rights reserved. Distributed under the terms of the MIT License.
5 */
6#ifndef LANGUAGE_H
7#define LANGUAGE_H
8
9
10#include <Language.h>
11#include <Referenceable.h>
12
13
14/*! This class represents a language that is supported by the Haiku
15    Depot Server system.  This may differ from the set of languages
16    that are supported in the platform itself.
17*/
18
19class Language : public BReferenceable, public BLanguage {
20public:
21								Language(const char* language,
22									const BString& serverName,
23									bool isPopular);
24								Language(const Language& other);
25
26			status_t			GetName(BString& name,
27									const BLanguage* displayLanguage = NULL
28									) const;
29			bool				IsPopular() const
30									{ return fIsPopular; }
31
32private:
33			BString				fServerName;
34			bool				fIsPopular;
35};
36
37
38#endif // LANGUAGE_H
39