Top | ![]() |
![]() |
![]() |
![]() |
GvaGameStoreGvaGameStore — A GtkTreeModel that stores game information |
GvaGameStore implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.
GtkTreeModel *
gva_game_store_new (void
);
Creates a new GvaGameStore with pre-defined columns and settings.
GtkTreeModel * gva_game_store_new_from_query (const gchar *sql
,GError **error
);
This may be the most powerful function in GNOME Video Arcade.
Creates a new GvaGameStore by executing the given SQL query on the games database and converting the results to tree model rows. The resulting GtkTreeModel can then be plugged into a GtkTreeView.
XXX Say more here.
void
gva_game_store_clear (GvaGameStore *game_store
);
Removes all rows from game_store
and clears the internal index.
void gva_game_store_index_insert (GvaGameStore *game_store
,const gchar *key
,GtkTreeIter *iter
);
Adds an entry to game_store
's internal index. You will want to call
this immediately after adding a new row to game_store
, such as with
gtk_list_store_append()
.
GtkTreePath * gva_game_store_index_lookup (GvaGameStore *game_store
,const gchar *key
);
Looks up the row corresponding to key
in game_store
and returns a
GtkTreePath to it, or NULL
if the row was not found.
struct GvaGameStore;
Contains only private data that should be read and manipulated using the functions below.
Most of these values correspond to fields in the games database.
Corresponds to the "available.name" database field. |
||
Corresponds to the "available.bios" database field. |
||
Corresponds to the "available.category" database field. |
||
Corresponds to the "available.favorite" database field. |
||
Corresponds to the "available.sourcefile" database field. |
||
Corresponds to the "available.isbios" database field. |
||
Corresponds to the "available.isdevice" database field. |
||
Corresponds to the "available.ismechanical" database field. |
||
Corresponds to the "available.runnable" database field. |
||
Corresponds to the "available.cloneof" database field. |
||
Corresponds to the "available.romof" database field. |
||
Corresponds to the "available.romset" database field. |
||
Corresponds to the "available.sampleof" database field. |
||
Corresponds to the "available.sampleset" database field. |
||
Corresponds to the "available.description" database field. |
||
Corresponds to the "available.year" database field. |
||
Corresponds to the "available.manufacturer" database field. |
||
Corresponds to the "available.sound_channels" database field. |
||
Corresponds to the "available.input_service" database field. |
||
Corresponds to the "available.input_tile" database field. |
||
Corresponds to the "available.input_players" database field. |
||
Corresponds to the "available.input_players_alt" database field. |
||
Corresponds to the "available.input_players_sim" database field. |
||
Corresponds to the "available.input_buttons" database field. |
||
Corresponds to the "available.input_coins" database field. |
||
Corresponds to the "available.driver_status" database field. |
||
Corresponds to the "available.driver_emulation" database field. |
||
Corresponds to the "available.driver_color" database field. |
||
Corresponds to the "available.driver_sound" database field. |
||
Corresponds to the "available.driver_graphic" database field. |
||
Corresponds to the "available.driver_cocktail" database field. |
||
Corresponds to the "available.driver_protection" database field. |
||
Corresponds to the "available.driver_savestate" database field. |
||
Corresponds to the "available.driver_palettesize" database field. |
||
Corresponds to the "lastplayed.timestamp" database field. |
||
Corresponds to the "playback.comment" database field. |
||
Corresponds to the "playback.inode" database field. |
||
Filename of a recorded game (not in the games database). |
||
Timestamp of a recorded game (not in the games database). |
||
Total number of game store columns. |