/* * Copyright 2016 (c) Anna Schumaker. */ #ifndef OCARINA_GUI_MODEL_H #define OCARINA_GUI_MODEL_H #include #define GUI_QUEUE_MODEL_TYPE (gui_queue_model_get_type()) enum queue_model_columns { Q_MODEL_TRACK_NR, Q_MODEL_TITLE, Q_MODEL_LENGTH, Q_MODEL_ARTIST, Q_MODEL_ALBUM, Q_MODEL_YEAR, Q_MODEL_GENRE, Q_MODEL_COUNT, Q_MODEL_LAST_PLAY, Q_MODEL_FILE_PATH, Q_MODEL_N_COLUMNS, }; typedef struct _gui_queue_model GuiQueueModel; typedef struct _gui_queue_model_class GuiQueueModelClass; struct _gui_queue_model { GObject gqm_parent; /* This MUST be the first member. */ gint gqm_stamp; /* This is used to check iter validity. */ }; struct _gui_queue_model_class { GObjectClass parent_class; }; /* Called to allocate a new GuiQueueModel */ GuiQueueModel *gui_queue_model_new(); /* Called to find the GType of the GuiQueueModel */ GType gui_queue_model_get_type(); #endif /* OCARINA_GUI_MODEL_H */