2 * arch-tag: Header for library browser widget
4 * Copyright (C) 2006 James Livingston <jrl@ids.org.au>
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 #ifndef __RB_LIBRARY_BROWSER_H
23 #define __RB_LIBRARY_BROWSER_H
25 #include <gtk/gtkhbox.h>
28 #include "rhythmdb-query-model.h"
29 #include "rb-property-view.h"
33 #define RB_TYPE_LIBRARY_BROWSER (rb_library_browser_get_type ())
34 #define RB_LIBRARY_BROWSER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_LIBRARY_BROWSER, RBLibraryBrowser))
35 #define RB_LIBRARY_BROWSER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_LIBRARY_BROWSER, RBLibraryBrowserClass))
36 #define RB_IS_LIBRARY_BROWSER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_LIBRARY_BROWSER))
37 #define RB_IS_LIBRARY_BROWSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_LIBRARY_BROWSER))
38 #define RB_LIBRARY_BROWSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_LIBRARY_BROWSER, RBLibraryBrowserClass))
48 } RBLibraryBrowserClass
;
50 GType
rb_library_browser_get_type (void);
51 RBLibraryBrowser
* rb_library_browser_new (RhythmDB
*db
,
52 RhythmDBEntryType entry_type
);
54 void rb_library_browser_set_model (RBLibraryBrowser
*widget
,
55 RhythmDBQueryModel
*model
,
56 gboolean query_pending
);
58 gboolean
rb_library_browser_reset (RBLibraryBrowser
*widget
);
59 RhythmDBQuery
* rb_library_browser_construct_query (RBLibraryBrowser
*widget
);
60 GList
* rb_library_browser_get_property_views (RBLibraryBrowser
*widget
);
61 RBPropertyView
* rb_library_browser_get_property_view (RBLibraryBrowser
*widget
,
62 RhythmDBPropType type
);
64 gboolean
rb_library_browser_has_selection (RBLibraryBrowser
*widget
);
65 void rb_library_browser_set_selection (RBLibraryBrowser
*widget
,
66 RhythmDBPropType type
,
71 #endif /* __RB_LIBRARY_BROWSER_H */