Refactor: hide implementation of GncSxInstanceModel (move from .h -> .c)

This commit is contained in:
Richard Cohen
2023-06-28 13:43:27 +01:00
parent d30fdd8071
commit 52e8524ec5
2 changed files with 12 additions and 18 deletions

View File

@@ -72,6 +72,18 @@ typedef struct _SxTxnCreationData
GList **creation_errors;
} SxTxnCreationData;
struct _GncSxInstanceModel
{
GObject parent;
gboolean disposed;
gint qof_event_handler_id;
GDate range_end;
gboolean include_disabled;
GList *sx_instance_list; /* <GncSxInstances*> */
};
static GncSxInstanceModel* gnc_sx_instance_model_new(void);
static GncSxInstance* gnc_sx_instance_new(GncSxInstances *parent, GncSxInstanceState state, GDate *date, void *temporal_state, gint sequence_num);

View File

@@ -37,24 +37,6 @@ G_BEGIN_DECLS
#define GNC_TYPE_SX_INSTANCE_MODEL (gnc_sx_instance_model_get_type ())
G_DECLARE_FINAL_TYPE (GncSxInstanceModel, gnc_sx_instance_model, GNC, SX_INSTANCE_MODEL, GObject)
typedef struct _GncSxInstanceModel
{
GObject parent;
gboolean disposed;
/* private */
gint qof_event_handler_id;
/* signals */
/* void (*added)(SchedXaction *sx); // gpointer user_data */
/* void (*updated)(SchedXaction *sx); // gpointer user_data */
/* void (*removing)(SchedXaction *sx); // gpointer user_data */
GDate range_end;
gboolean include_disabled;
GList *sx_instance_list; /* <GncSxInstances*> */
} GncSxInstanceModel;
typedef struct _GncSxInstances
{
SchedXaction *sx;