Skip to content

Commit

Permalink
Refactor: hide implementation of GncSxInstanceModel (move from .h -> .c)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 29, 2023
1 parent d30fdd8 commit 52e8524
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
12 changes: 12 additions & 0 deletions libgnucash/app-utils/gnc-sx-instance-model.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
18 changes: 0 additions & 18 deletions libgnucash/app-utils/gnc-sx-instance-model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52e8524

Please sign in to comment.