#ifndef LANGUAGE_H
#define LANGUAGE_H
#include <Language.h>
#include <Referenceable.h>
class Language : public BReferenceable, public BLanguage {
public:
Language(const char* language,
const BString& serverName,
bool isPopular);
Language(const Language& other);
bool operator<(const Language& other) const;
bool operator==(const Language& other) const;
bool operator!=(const Language& other) const;
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<Language> LanguageRef;
extern bool IsLanguageRefLess(const LanguageRef& l1, const LanguageRef& l2);
#endif