/*
    Copyright (C) 1995-2013, The AROS Development Team. All rights reserved.

    Desc:
*/

#ifndef _PREFS_H_
#define _PREFS_H_

#include <prefs/locale.h>
#include <dos/dos.h>
#include <intuition/classusr.h>

/*********************************************************************************************/

BOOL Prefs_Initialize(VOID);
VOID Prefs_Deinitialize(VOID);
BOOL Prefs_HandleArgs(STRPTR from, BOOL use, BOOL save);
BOOL Prefs_ImportFH(BPTR fh);
BOOL Prefs_ExportFH(BPTR fh);
BOOL Prefs_SaveCharset(BOOL envarc);
BOOL Prefs_Default(VOID);
BOOL Prefs_LoadRegion(STRPTR name, struct CountryPrefs *country);

/*********************************************************************************************/

extern struct LocalePrefs localeprefs;

/*********************************************************************************************/

struct ListviewEntry
{
    struct Node node;
    char        realname[30];
    char        *displayflag;
};

struct RegionEntry
{
    struct ListviewEntry lve;
    struct BitMap       *flagbm;
    WORD                 flagw;
    WORD                 flagh;
    Object              *pic;
    Object              *list_pic;

};

struct LanguageEntry
{
    struct ListviewEntry lve;
};

#define CHARACTER_SET_LEN 255

extern struct List          region_list, language_list, pref_language_list;
extern struct LocalePrefs   localeprefs;
extern char                 character_set[CHARACTER_SET_LEN];

#endif /* PREFS_H */
