3 * This file is part of anjuta
5 * Copyright (C) 2002-2005 Paolo Maggi
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
24 * Modified by the anjuta Team, 2002-2005. See the AUTHORS file for a
25 * list of people on the anjuta Team.
26 * See the ChangeLog files for a list of changes.
31 #ifndef __ANJUTA_ENCODINGS_H__
32 #define __ANJUTA_ENCODINGS_H__
35 #include <glib-object.h>
39 typedef struct _AnjutaEncoding AnjutaEncoding
;
41 #define ANJUTA_TYPE_ENCODING (anjuta_encoding_get_type ())
43 GType
anjuta_encoding_get_type (void) G_GNUC_CONST
;
45 AnjutaEncoding
*anjuta_encoding_copy (const AnjutaEncoding
*enc
);
46 void anjuta_encoding_free (AnjutaEncoding
*enc
);
48 const AnjutaEncoding
*anjuta_encoding_get_from_charset (const gchar
*charset
);
49 const AnjutaEncoding
*anjuta_encoding_get_from_index (gint index
);
51 gchar
*anjuta_encoding_to_string (const AnjutaEncoding
*enc
);
53 const gchar
*anjuta_encoding_get_name (const AnjutaEncoding
*enc
);
54 const gchar
*anjuta_encoding_get_charset (const AnjutaEncoding
*enc
);
56 const AnjutaEncoding
*anjuta_encoding_get_utf8 (void);
57 const AnjutaEncoding
*anjuta_encoding_get_current (void);
61 #endif /* __ANJUTA_ENCODINGS_H__ */