00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00030 #ifndef DUI_INTERFACE_H
00031 #define DUI_INTERFACE_H
00032
00033 #include <glib.h>
00034 #include <glib-object.h>
00035 #include <gio/gio.h>
00036
00037 typedef struct DuiAction_s DuiAction;
00038 typedef struct DuiDatabase_s DuiDatabase;
00039 typedef struct DuiFilter_s DuiFilter;
00040 typedef struct DuiInterface_s DuiInterface;
00041 typedef struct DuiReport_s DuiReport;
00042
00043
00044 #define EstronInterface DuiInterface
00045
00050 struct DuiInterfacePlugin_s
00051 {
00052 const gchar *plugin_name;
00053 gpointer self;
00054 void (*realize) (gpointer self, gboolean fatal_if_no_main);
00055 };
00056
00057 typedef struct DuiInterfacePlugin_s DuiInterfacePlugin;
00058
00059 DuiInterface * dui_interface_new (void);
00060 void dui_interface_destroy (DuiInterface *dui);
00061
00062 void dui_interface_set_name (DuiInterface *dui, const gchar * name);
00063
00064 void dui_interface_register_plugin (DuiInterface *, DuiInterfacePlugin *);
00065
00071 void dui_interface_realize (DuiInterface *, gint fatal_if_no_main);
00072
00076 DuiAction *
00077 dui_interface_find_action_by_name (DuiInterface *, const gchar * name);
00078 DuiDatabase *
00079 dui_interface_find_database_by_name (DuiInterface *, const gchar * name);
00080 DuiReport *
00081 dui_interface_find_report_by_name (DuiInterface *, const gchar * name);
00082
00085 void dui_interface_kvp_insert (DuiInterface *, const gchar * key,
00086 const gchar * value);
00087
00089 const gchar *
00090 dui_interface_kvp_lookup (DuiInterface *, const gchar * key);
00091
00092 void dui_interface_add_action (DuiInterface *, DuiAction *);
00093 void dui_interface_add_database (DuiInterface *, DuiDatabase *);
00094 void dui_interface_add_report (DuiInterface *, DuiReport *);
00095
00096 void dui_interface_add_object (DuiInterface *, const gchar * instance_name, GObject *);
00097 GObject * dui_interface_find_object_by_name (DuiInterface *dui, const gchar *instance_name);
00098
00100 void
00101 estron_interface_set_gfile (EstronInterface * est, GFile * gfile);
00102
00104 gchar *
00105 estron_interface_get_filename (EstronInterface * est);
00106
00108 gchar *
00109 estron_interface_get_fileparent (EstronInterface * est);
00110
00111 #endif
00112