Updated Finnish translation
[rhythmbox.git] / rhythmdb / rhythmdb-property-model.h
blob779231f5f1b447e631286ce66b1e21f483c7b0b6
1 /*
2 * arch-tag: Header for RhythmDB property GtkTreeModel impl.
4 * Copyright (C) 2003 Colin Walters <walters@rhythmbox.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include "config.h"
23 #include <glib-object.h>
24 #include <glib.h>
25 #include <gtk/gtktreeview.h>
27 #include "rhythmdb.h"
28 #include "rhythmdb-query-model.h"
30 #ifndef RHYTHMDB_PROPERTY_MODEL_H
31 #define RHYTHMDB_PROPERTY_MODEL_H
33 G_BEGIN_DECLS
35 #define RHYTHMDB_TYPE_PROPERTY_MODEL (rhythmdb_property_model_get_type ())
36 #define RHYTHMDB_PROPERTY_MODEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RHYTHMDB_TYPE_PROPERTY_MODEL, RhythmDBPropertyModel))
37 #define RHYTHMDB_PROPERTY_MODEL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RHYTHMDB_PROPERTY_MODEL_TYPE, RhythmDBPropertyModelClass))
38 #define RHYTHMDB_IS_PROPERTY_MODEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RHYTHMDB_TYPE_PROPERTY_MODEL))
39 #define RHYTHMDB_IS_PROPERTY_MODEL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RHYTHMDB_TYPE_PROPERTY_MODEL))
40 #define RHYTHMDB_PROPERTY_MODEL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RHYTHMDB_TYPE_PROPERTY_MODEL, RhythmDBPropertyModelClass))
42 typedef enum
44 RHYTHMDB_PROPERTY_MODEL_COLUMN_TITLE,
45 RHYTHMDB_PROPERTY_MODEL_COLUMN_PRIORITY,
46 RHYTHMDB_PROPERTY_MODEL_COLUMN_NUMBER,
47 RHYTHMDB_PROPERTY_MODEL_COLUMN_LAST,
48 } RhythmDBPropertyModelColumn;
50 GType rhythmdb_property_model_column_get_type (void);
51 #define RHYTHMDB_TYPE_PROPERTY_MODEL_COLUMN (rhythmdb_property_model_column_get_type ())
53 typedef struct RhythmDBPropertyModelPrivate RhythmDBPropertyModelPrivate;
55 typedef struct
57 GObject parent;
59 RhythmDBPropertyModelPrivate *priv;
60 } RhythmDBPropertyModel;
62 typedef struct
64 GObjectClass parent;
66 void (*pre_row_deletion) (RhythmDBPropertyModel *model);
67 } RhythmDBPropertyModelClass;
69 GType rhythmdb_property_model_get_type (void);
71 RhythmDBPropertyModel * rhythmdb_property_model_new (RhythmDB *db, RhythmDBPropType propid);
73 gboolean rhythmdb_property_model_iter_from_string(RhythmDBPropertyModel *model, const char *name, GtkTreeIter *iter);
75 void rhythmdb_property_model_enable_drag (RhythmDBPropertyModel *model, GtkTreeView *view);
77 G_END_DECLS
79 #endif /* __RHYTHMBDB_PROPERTY_MODEL_H */