README: add deprecation notice
[nautilus-actions.git] / src / core / fma-iprefs.h
blob9772e824c3fbbf10df204694ed392bad34dba7cb
1 /*
2 * FileManager-Actions
3 * A file-manager extension which offers configurable context menu actions.
5 * Copyright (C) 2005 The GNOME Foundation
6 * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
7 * Copyright (C) 2009-2015 Pierre Wieser and others (see AUTHORS)
9 * FileManager-Actions is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * FileManager-Actions is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with FileManager-Actions; see the file COPYING. If not, see
21 * <http://www.gnu.org/licenses/>.
23 * Authors:
24 * Frederic Ruaudel <grumz@grumz.net>
25 * Rodrigo Moya <rodrigo@gnome-db.org>
26 * Pierre Wieser <pwieser@trychlos.org>
27 * ... and many others (see AUTHORS)
30 #ifndef __CORE_FMA_IPREFS_H__
31 #define __CORE_FMA_IPREFS_H__
34 * Starting with 3.1.0, NAIPrefs interface is deprecated.
36 * Instead, this module is used as an intermediate level between actual
37 * settings and the application; it so implements all maps needed to
38 * transform an enum used in the code to and from a string stored in
39 * preferences.
42 #include "fma-pivot.h"
44 G_BEGIN_DECLS
46 /* sort mode of the items in the file manager context menu
48 enum {
49 IPREFS_ORDER_ALPHA_ASCENDING = 1, /* default */
50 IPREFS_ORDER_ALPHA_DESCENDING,
51 IPREFS_ORDER_MANUAL
54 guint fma_iprefs_get_order_mode ( gboolean *mandatory );
55 guint fma_iprefs_get_order_mode_by_label( const gchar *label );
56 void fma_iprefs_set_order_mode ( guint mode );
58 guint fma_iprefs_get_tabs_pos ( gboolean *mandatory );
59 void fma_iprefs_set_tabs_pos ( guint pos );
61 gboolean fma_iprefs_write_level_zero ( const GList *items, GSList **messages );
63 G_END_DECLS
65 #endif /* __CORE_FMA_IPREFS_H__ */