Update copyright message
[nautilus-actions.git] / src / nact / nact-iprefs.h
blobc89da2005282a0e96de239e43c6f61610e53a573
1 /*
2 * Nautilus Actions
3 * A Nautilus extension which offers configurable context menu actions.
5 * Copyright (C) 2005 The GNOME Foundation
6 * Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
7 * Copyright (C) 2009, 2010, 2011 Pierre Wieser and others (see AUTHORS)
9 * This Program 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 * This Program 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
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public
20 * License along with this Library; see the file COPYING. If not,
21 * write to the Free Software Foundation, Inc., 59 Temple Place,
22 * Suite 330, Boston, MA 02111-1307, USA.
24 * Authors:
25 * Frederic Ruaudel <grumz@grumz.net>
26 * Rodrigo Moya <rodrigo@gnome-db.org>
27 * Pierre Wieser <pwieser@trychlos.org>
28 * ... and many others (see AUTHORS)
31 #ifndef __NACT_IPREFS_H__
32 #define __NACT_IPREFS_H__
34 /**
35 * SECTION: nact_iprefs
36 * @short_description: #NactIPrefs interface definition.
37 * @include: nact/nact-iprefs.h
39 * This interface cooperates with #NactWindow to manage preferences.
42 #include "base-window.h"
44 G_BEGIN_DECLS
46 #define NACT_IPREFS_TYPE ( nact_iprefs_get_type())
47 #define NACT_IPREFS( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, NACT_IPREFS_TYPE, NactIPrefs ))
48 #define NACT_IS_IPREFS( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, NACT_IPREFS_TYPE ))
49 #define NACT_IPREFS_GET_INTERFACE( instance ) ( G_TYPE_INSTANCE_GET_INTERFACE(( instance ), NACT_IPREFS_TYPE, NactIPrefsInterface ))
51 typedef struct NactIPrefs NactIPrefs;
53 typedef struct NactIPrefsInterfacePrivate NactIPrefsInterfacePrivate;
55 typedef struct {
56 GTypeInterface parent;
57 NactIPrefsInterfacePrivate *private;
59 NactIPrefsInterface;
61 #define IPREFS_EXPORT_ITEMS_FOLDER_URI "export-folder-uri"
62 #define IPREFS_EXPORT_FORMAT "export-format"
63 #define IPREFS_EXPORT_ASK_LAST_FORMAT "export-ask-user-last-format"
64 #define IPREFS_EXPORT_FORMAT_DEFAULT "GConfEntry"
65 #define IPREFS_IMPORT_ITEMS_FOLDER_URI "import-folder-uri"
66 #define IPREFS_ASSIST_ESC_QUIT "assistant-esc-quit"
67 #define IPREFS_ASSIST_ESC_CONFIRM "assistant-esc-confirm"
69 /* these are special export formats
71 enum {
72 IPREFS_EXPORT_NO_EXPORT = 1,
73 IPREFS_EXPORT_FORMAT_GCONF_SCHEMA
76 GType nact_iprefs_get_type( void );
78 GQuark nact_iprefs_get_export_format( const BaseWindow *window, const gchar *pref );
79 void nact_iprefs_set_export_format( const BaseWindow *window, const gchar *pref, GQuark format );
81 void nact_iprefs_migrate_key ( const BaseWindow *window, const gchar *old_key, const gchar *new_key );
83 void nact_iprefs_write_bool ( const BaseWindow *window, const gchar *key, gboolean value );
84 void nact_iprefs_write_uint ( const BaseWindow *window, const gchar *key, guint value );
85 void nact_iprefs_write_string ( const BaseWindow *window, const gchar *name, const gchar *value );
87 G_END_DECLS
89 #endif /* __NACT_IPREFS_H__ */