/* Generated by GOB (v1.0.10) (do not edit directly) */ #include #ifndef __GNOME_PILOT_CONDUIT_H__ #define __GNOME_PILOT_CONDUIT_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include #include "gnome-pilot-dbinfo.h" #include "gnome-pilot-structures.h" /* * Type checking and casting macros */ #define GNOME_TYPE_PILOT_CONDUIT (gnome_pilot_conduit_get_type()) #define GNOME_PILOT_CONDUIT(obj) GTK_CHECK_CAST((obj), gnome_pilot_conduit_get_type(), GnomePilotConduit) #define GNOME_PILOT_CONDUIT_CONST(obj) GTK_CHECK_CAST((obj), gnome_pilot_conduit_get_type(), GnomePilotConduit const) #define GNOME_PILOT_CONDUIT_CLASS(klass) GTK_CHECK_CLASS_CAST((klass), gnome_pilot_conduit_get_type(), GnomePilotConduitClass) #define GNOME_IS_PILOT_CONDUIT(obj) GTK_CHECK_TYPE((obj), gnome_pilot_conduit_get_type ()) #ifdef GTK_CHECK_GET_CLASS #define GNOME_PILOT_CONDUIT_GET_CLASS(obj) GTK_CHECK_GET_CLASS((obj), gnome_pilot_conduit_get_type(), GnomePilotConduitClass) #else /* !GTK_CHECK_GET_CLASS */ #define GNOME_PILOT_CONDUIT_GET_CLASS(obj) ((GnomePilotConduitClass *)GTK_OBJECT(obj)->klass) #endif /* GTK_CHECK_GET_CLASS */ /* * Main object structure */ #ifndef __TYPEDEF_GNOME_PILOT_CONDUIT__ #define __TYPEDEF_GNOME_PILOT_CONDUIT__ typedef struct _GnomePilotConduit GnomePilotConduit; #endif struct _GnomePilotConduit { GtkObject __parent__; /*< public >*/ gchar * name; gint progress_stepping; gint progress_top; /*< private >*/ GPilotPilot * pilot; /* protected */ }; /* * Class definition */ typedef struct _GnomePilotConduitClass GnomePilotConduitClass; struct _GnomePilotConduitClass { GtkObjectClass __parent__; /*signal*/void (* progress) (GnomePilotConduit * self, gint total, gint current); /*signal*/void (* message) (GnomePilotConduit * self, gchar * message); /*signal*/void (* warning) (GnomePilotConduit * self, gchar * message); /*signal*/void (* error) (GnomePilotConduit * self, gchar * message); /*signal*/int (* create_settings_window) (GnomePilotConduit * self, GtkWidget * parent); /*signal*/void (* display_settings) (GnomePilotConduit * self); /*signal*/void (* save_settings) (GnomePilotConduit * self); /*signal*/void (* revert_settings) (GnomePilotConduit * self); }; /* * Public methods */ GtkType gnome_pilot_conduit_get_type (void) G_GNUC_CONST; gchar * gnome_pilot_conduit_get_name (GnomePilotConduit * self); void gnome_pilot_conduit_set_name (GnomePilotConduit * self, gchar * ARG); GtkObject * gnome_pilot_conduit_new (void); void gnome_pilot_conduit_progress (GnomePilotConduit * self, gint total, gint current); void gnome_pilot_conduit_send_progress (GnomePilotConduit * self, gint total, gint current); void gnome_pilot_conduit_message (GnomePilotConduit * self, gchar * message); void gnome_pilot_conduit_warning (GnomePilotConduit * self, gchar * message); void gnome_pilot_conduit_error (GnomePilotConduit * self, gchar * message); void gnome_pilot_conduit_send_message (GnomePilotConduit * self, gchar * message, ...); void gnome_pilot_conduit_send_warning (GnomePilotConduit * self, gchar * message, ...); void gnome_pilot_conduit_send_error (GnomePilotConduit * self, gchar * message, ...); int gnome_pilot_conduit_create_settings_window (GnomePilotConduit * self, GtkWidget * parent); void gnome_pilot_conduit_display_settings (GnomePilotConduit * self); void gnome_pilot_conduit_save_settings (GnomePilotConduit * self); void gnome_pilot_conduit_revert_settings (GnomePilotConduit * self); const gchar * gnome_pilot_conduit_get_base_dir (GnomePilotConduit * self); /* * Signal connection wrapper macros */ #if defined(__GNUC__) && !defined(__STRICT_ANSI__) #define GNOME_PILOT_CONDUIT_SIGNAL_PROGRESS(func) "progress",GTK_SIGNAL_FUNC(({void (* ___progress) (GnomePilotConduit * self, gint total, gint current, gpointer data ) = func; ___progress; })) #define GNOME_PILOT_CONDUIT_SIGNAL_MESSAGE(func) "message",GTK_SIGNAL_FUNC(({void (* ___message) (GnomePilotConduit * self, gchar * message, gpointer data ) = func; ___message; })) #define GNOME_PILOT_CONDUIT_SIGNAL_WARNING(func) "warning",GTK_SIGNAL_FUNC(({void (* ___warning) (GnomePilotConduit * self, gchar * message, gpointer data ) = func; ___warning; })) #define GNOME_PILOT_CONDUIT_SIGNAL_ERROR(func) "error",GTK_SIGNAL_FUNC(({void (* ___error) (GnomePilotConduit * self, gchar * message, gpointer data ) = func; ___error; })) #define GNOME_PILOT_CONDUIT_SIGNAL_CREATE_SETTINGS_WINDOW(func) "create_settings_window",GTK_SIGNAL_FUNC(({int (* ___create_settings_window) (GnomePilotConduit * self, GtkWidget * parent, gpointer data ) = func; ___create_settings_window; })) #define GNOME_PILOT_CONDUIT_SIGNAL_DISPLAY_SETTINGS(func) "display_settings",GTK_SIGNAL_FUNC(({void (* ___display_settings) (GnomePilotConduit * self, gpointer data ) = func; ___display_settings; })) #define GNOME_PILOT_CONDUIT_SIGNAL_SAVE_SETTINGS(func) "save_settings",GTK_SIGNAL_FUNC(({void (* ___save_settings) (GnomePilotConduit * self, gpointer data ) = func; ___save_settings; })) #define GNOME_PILOT_CONDUIT_SIGNAL_REVERT_SETTINGS(func) "revert_settings",GTK_SIGNAL_FUNC(({void (* ___revert_settings) (GnomePilotConduit * self, gpointer data ) = func; ___revert_settings; })) #else /* __GNUC__ && !__STRICT_ANSI__ */ #define GNOME_PILOT_CONDUIT_SIGNAL_PROGRESS(func) "progress",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_MESSAGE(func) "message",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_WARNING(func) "warning",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_ERROR(func) "error",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_CREATE_SETTINGS_WINDOW(func) "create_settings_window",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_DISPLAY_SETTINGS(func) "display_settings",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_SAVE_SETTINGS(func) "save_settings",GTK_SIGNAL_FUNC(func) #define GNOME_PILOT_CONDUIT_SIGNAL_REVERT_SETTINGS(func) "revert_settings",GTK_SIGNAL_FUNC(func) #endif /* __GNUC__ && !__STRICT_ANSI__ */ /* * Argument wrapping macros */ #if defined(__GNUC__) && !defined(__STRICT_ANSI__) #define GNOME_PILOT_CONDUIT_ARG_NAME(arg) "name",({gchar * z = (arg); z;}) #define GNOME_PILOT_CONDUIT_GET_ARG_NAME(arg) "name",({gchar * *z = (arg); z;}) #define GNOME_PILOT_CONDUIT_ARG_PROGRESS_STEPPING(arg) "progress_stepping",({gint z = (arg); z;}) #define GNOME_PILOT_CONDUIT_GET_ARG_PROGRESS_STEPPING(arg) "progress_stepping",({gint *z = (arg); z;}) #define GNOME_PILOT_CONDUIT_ARG_PROGRESS_TOP(arg) "progress_top",({gint z = (arg); z;}) #define GNOME_PILOT_CONDUIT_GET_ARG_PROGRESS_TOP(arg) "progress_top",({gint *z = (arg); z;}) #define GNOME_PILOT_CONDUIT_ARG_PILOT(arg) "pilot",({GPilotPilot * z = (arg); z;}) #define GNOME_PILOT_CONDUIT_GET_ARG_PILOT(arg) "pilot",({GPilotPilot * *z = (arg); z;}) #else /* __GNUC__ && !__STRICT_ANSI__ */ #define GNOME_PILOT_CONDUIT_ARG_NAME(arg) "name",(gchar * )(arg) #define GNOME_PILOT_CONDUIT_GET_ARG_NAME(arg) "name",(gchar * *)(arg) #define GNOME_PILOT_CONDUIT_ARG_PROGRESS_STEPPING(arg) "progress_stepping",(gint )(arg) #define GNOME_PILOT_CONDUIT_GET_ARG_PROGRESS_STEPPING(arg) "progress_stepping",(gint *)(arg) #define GNOME_PILOT_CONDUIT_ARG_PROGRESS_TOP(arg) "progress_top",(gint )(arg) #define GNOME_PILOT_CONDUIT_GET_ARG_PROGRESS_TOP(arg) "progress_top",(gint *)(arg) #define GNOME_PILOT_CONDUIT_ARG_PILOT(arg) "pilot",(GPilotPilot * )(arg) #define GNOME_PILOT_CONDUIT_GET_ARG_PILOT(arg) "pilot",(GPilotPilot * *)(arg) #endif /* __GNUC__ && !__STRICT_ANSI__ */ typedef GnomePilotConduit *(*GnomePilotConduitOldLoadFunc)(guint32); typedef GnomePilotConduit *(*GnomePilotConduitLoadFunc)(GPilotPilot*); typedef void (*GnomePilotConduitDestroyFunc)(GnomePilotConduit *); #ifdef __cplusplus } #endif /* __cplusplus */ #endif .