1 /* gmpc-extra.vapi generated by valac, do not modify. */
3 [CCode (cprefix = "Gmpc", lower_case_cprefix = "gmpc_")]
5 [CCode (cprefix = "GmpcEasy", lower_case_cprefix = "gmpc_easy_")]
7 [CCode (cheader_filename = "gmpc-extras.h")]
8 public class Command : Gmpc.Plugin.Base {
9 [CCode (cheader_filename = "gmpc-extras.h")]
10 public delegate void Callback (void* data, string param);
12 public uint add_entry (string name, string pattern, string hint, Gmpc.Easy.Command.Callback* callback, void* userdata);
13 public override bool get_enabled ();
14 public override unowned string get_name ();
15 public override unowned int[] get_version ();
16 public static void help_window (void* data, string? param);
17 public static void help_window_destroy (Gtk.Dialog window, int response);
19 public override void set_enabled (bool state);
22 [CCode (cprefix = "GmpcFavorites", lower_case_cprefix = "gmpc_favorites_")]
24 [CCode (cheader_filename = "gmpc-extras.h")]
25 public class Button : Gtk.EventBox {
27 public void set_song (MPD.Song? song);
30 [CCode (cprefix = "GmpcListstore", lower_case_cprefix = "gmpc_liststore_")]
32 [CCode (cheader_filename = "gmpc-extras.h")]
33 public class Sort : Gtk.ListStore, Gtk.TreeDragSource, Gtk.TreeDragDest {
37 [CCode (cprefix = "GmpcMenuItem", lower_case_cprefix = "gmpc_menu_item_")]
39 [CCode (cheader_filename = "gmpc-extras.h")]
40 public class Rating : Gtk.MenuItem {
42 public Gmpc.Rating rating;
43 public Rating (MPD.Server server, MPD.Song song);
44 public int get_rating ();
47 [CCode (cprefix = "GmpcMetaData", lower_case_cprefix = "gmpc_meta_data_")]
49 [CCode (cheader_filename = "gmpc-extras.h")]
50 public class EditWindow : Gtk.Window {
51 public EditWindow (MPD.Song song, Gmpc.MetaData.Type type);
52 public void b_cancel ();
53 public void callback (void* handle, string? plugin_name, GLib.List<Gmpc.MetaData.Item>? list);
54 public void destroy_popup (Gtk.Button button);
55 public void image_downloaded (Gmpc.AsyncDownload.Handle handle, Gmpc.AsyncDownload.Status status);
56 public void refresh_query (Gtk.Button button);
57 public void store_image (Gmpc.AsyncDownload.Handle handle, Gmpc.AsyncDownload.Status status);
60 [CCode (cprefix = "GmpcMpdData", lower_case_cprefix = "gmpc_mpd_data_")]
62 [CCode (cprefix = "GmpcMpdDataTreeview", lower_case_cprefix = "gmpc_mpd_data_treeview_")]
64 [CCode (cheader_filename = "gmpc-extras.h")]
65 public class Tooltip : Gtk.Window {
66 public Gmpc.MetaData.Type mtype;
67 public string? request_artist;
68 public Tooltip (Gtk.TreeView pw, Gmpc.MetaData.Type type);
72 [CCode (cprefix = "GmpcPlugin", lower_case_cprefix = "gmpc_plugin_")]
74 [CCode (cheader_filename = "gmpc-extras.h")]
75 public abstract class Base : GLib.Object {
78 public int plugin_type;
79 public weak string translation_domain;
81 public virtual bool get_enabled ();
82 public abstract unowned string get_name ();
83 public abstract unowned int[] get_version ();
84 public virtual void save_yourself ();
85 public virtual void set_enabled (bool state);
87 [CCode (cheader_filename = "gmpc-extras.h")]
88 public class DatabaseUpdateTracker : Gmpc.Plugin.Base {
90 public DatabaseUpdateTracker ();
91 public override unowned string get_name ();
92 public override unowned int[] get_version ();
94 [CCode (cheader_filename = "gmpc-extras.h")]
95 public class MetadataPrefetcher : Gmpc.Plugin.Base {
97 public MetadataPrefetcher ();
98 public override unowned string get_name ();
99 public override unowned int[] get_version ();
101 [CCode (cheader_filename = "gmpc-extras.h")]
102 public class Mockup : Gmpc.Plugin.Base, Gmpc.Plugin.BrowserIface {
103 public const int[] version;
105 public override unowned string get_name ();
106 public override unowned int[] get_version ();
107 public override void save_yourself ();
108 public override void set_enabled (bool state);
110 [CCode (cheader_filename = "gmpc-extras.h")]
111 public interface BrowserIface : Gmpc.Plugin.Base {
112 public abstract void browser_add (Gtk.Widget category_tree);
113 public virtual int browser_add_go_menu (Gtk.Menu menu);
114 public virtual int browser_option_menu (Gtk.Menu menu);
115 public abstract void browser_selected (Gtk.Container container);
116 public abstract void browser_unselected (Gtk.Container container);
118 [CCode (cheader_filename = "gmpc-extras.h")]
119 public interface MetaDataIface : Gmpc.Plugin.Base {
120 public abstract void get_data (MPD.Song song, Gmpc.MetaData.Type type, Gmpc.Plugin.MetaDataCallback callback);
121 public abstract int get_priority ();
122 public abstract void set_priority (int priority);
124 [CCode (cheader_filename = "gmpc-extras.h")]
125 public interface PreferencesIface : Gmpc.Plugin.Base {
126 public abstract void preferences_pane_construct (Gtk.Container container);
127 public abstract void preferences_pane_destroy (Gtk.Container container);
129 [CCode (cheader_filename = "gmpc-extras.h")]
130 public interface SongListIface : Gmpc.Plugin.Base {
131 public abstract int song_list (Gtk.Widget tree, Gtk.Menu menu);
133 [CCode (cheader_filename = "gmpc-extras.h")]
134 public interface ToolMenuIface : Gmpc.Plugin.Base {
135 public abstract int tool_menu_integration (Gtk.Menu menu);
137 [CCode (cheader_filename = "gmpc-extras.h")]
138 public delegate void MetaDataCallback (GLib.List<Gmpc.MetaData.Item> list);
140 [CCode (cprefix = "GmpcSong", lower_case_cprefix = "gmpc_song_")]
142 [CCode (cheader_filename = "gmpc-extras.h")]
143 public class Links : Gtk.Frame {
144 [CCode (cprefix = "GMPC_SONG_LINKS_TYPE_", cheader_filename = "gmpc-extras.h")]
150 public Links (Gmpc.Song.Links.Type type, MPD.Song song);
153 [CCode (cprefix = "GmpcUrlFetching", lower_case_cprefix = "gmpc_url_fetching_")]
154 namespace UrlFetching {
155 [CCode (cheader_filename = "gmpc-extras.h")]
156 public class Gui : GLib.Object {
157 [CCode (cheader_filename = "gmpc-extras.h")]
158 public delegate void ParseUrl (Gmpc.UrlFetching.Gui gui, string url);
159 [CCode (cheader_filename = "gmpc-extras.h")]
160 public delegate bool ValidateUrl (Gmpc.UrlFetching.Gui gui, string url);
161 public Gui (Gmpc.UrlFetching.Gui.ParseUrl parse_callback, Gmpc.UrlFetching.Gui.ValidateUrl validate_callback, GLib.DestroyNotify destroy_cb);
162 public void set_completed ();
163 public void set_error (string error_message);
164 public void set_processing ();
165 public void set_progress (double progress);
168 [CCode (cprefix = "GmpcWidget", lower_case_cprefix = "gmpc_widget_")]
170 [CCode (cheader_filename = "gmpc-extras.h")]
171 public class More : Gtk.Frame {
172 public More (string unique_id, string markup, Gtk.Widget child);
174 [CCode (cheader_filename = "gmpc-extras.h")]
175 public class SimilarArtist : Gtk.Table {
176 public SimilarArtist (MPD.Server server, MPD.Song song);
177 public Gtk.Widget new_artist_button (string artist, bool in_db);
179 [CCode (cheader_filename = "gmpc-extras.h")]
180 public class SimilarSongs : Gtk.Alignment {
181 public SimilarSongs (MPD.Song song);
182 public void update ();
185 [CCode (cheader_filename = "gmpc-extras.h")]
186 public class Connection : GLib.Object {
187 public Connection ();
188 public signal void connection_changed (MPD.Server mi, int connect);
189 public signal void status_changed (MPD.Server mi, MPD.Status.Changed what);
191 [CCode (cheader_filename = "gmpc-extras.h")]
192 public class Image : Gtk.EventBox {
194 public void clear_pixbuf ();
195 public void set_pixbuf (Gdk.Pixbuf buf, bool border);
196 public string? text { get; set; }
198 [CCode (cheader_filename = "gmpc-extras.h")]
199 public class MetadataBrowser : Gmpc.Plugin.Base, Gmpc.Plugin.BrowserIface, Gmpc.Plugin.PreferencesIface {
200 public const int[] version;
201 public MetadataBrowser ();
202 public override unowned string get_name ();
203 public override unowned int[] get_version ();
204 public Gtk.Widget metadata_box_show_song (MPD.Song song, bool show_controls);
205 public override void save_yourself ();
206 public void select_browser (Gtk.TreeView? tree);
207 public void set_album (string artist, string album);
208 public void set_artist (string artist);
209 public void set_song (MPD.Song song);
211 [CCode (cheader_filename = "gmpc-extras.h")]
212 public class PanedSizeGroup : GLib.Object {
213 public PanedSizeGroup ();
214 public void add_paned (Gtk.Paned paned);
216 [CCode (cheader_filename = "gmpc-extras.h")]
217 public class Progress : Gtk.HBox {
218 public bool _hide_text;
220 public void set_time (uint total, uint current);
221 public bool hide_text { get; set; }
223 [CCode (cheader_filename = "gmpc-extras.h")]
224 public class Rating : Gtk.Frame {
225 public Gtk.EventBox event_box;
226 public Rating (MPD.Server server, MPD.Song song);
227 public bool button_press_event_callback (Gtk.EventBox wid, Gdk.EventButton event);
228 public void set_rating (int rating);
229 public void update ();
231 [CCode (cheader_filename = "gmpc-extras.h")]
232 public class TestPlugin : Gmpc.Plugin.Base, Gmpc.Plugin.ToolMenuIface, Gmpc.Plugin.SongListIface {
233 public const int[] version;
234 public TestPlugin ();
235 public override bool get_enabled ();
236 public override unowned string get_name ();
237 public override unowned int[] get_version ();
238 public void menu_activated_album (Gtk.MenuItem item);
239 public override void save_yourself ();
240 public override void set_enabled (bool state);