File: rb.vapi

package info (click to toggle)
rhythmbox 3.4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,376 kB
  • sloc: ansic: 114,861; python: 4,941; xml: 730; javascript: 350; perl: 307; sh: 84; makefile: 43
file content (141 lines) | stat: -rw-r--r-- 3,676 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[CCode (cprefix = "RB", lower_case_cprefix = "rb_")]
namespace RB {
	[CCode (cprefix = "RB_SHELL_UI_LOCATION_", cheader_filename = "rb-shell.h")]
	public enum ShellUILocation {
		SIDEBAR,
		MAIN_TOP,
		MAIN_BOTTOM,
		MAIN_NOTEBOOK
	}

	[CCode (cheader_filename = "rb-shell.h", ref_function = "g_object_ref", unref_function = "g_object_unref")]
	public class Shell : GLib.Object
	{
		[CCode (cname = "rb_shell_get_type")]
		public static GLib.Type get_type ();

		[CCode (cname = "rb_shell_get_player")]
		public unowned ShellPlayer get_player ();

		public void add_widget (Gtk.Widget widget, RB.ShellUILocation location);
		public void remove_widget (Gtk.Widget widget, RB.ShellUILocation location);

		[NoAccessorMethod]
		public RhythmDB.DB db { owned get; }

		public void append_source (RB.Source source, RB.Source? parent = null);

		public void register_entry_type_for_source(RB.Source source, RhythmDB.EntryType entry_type);
	}

	[CCode (cheader_filename = "rb-plugin.h")]
	public abstract class Plugin : GLib.Object {
		[CCode (cname = "rb_plugin_get_type")]
		public static GLib.Type get_type ();

		[CCode (cname = "rb_plugin_activate")]
		public abstract void activate (RB.Shell shell);

		[CCode (cname = "rb_plugin_deactivate")]
		public abstract void deactivate (RB.Shell shell);

		[CCode (cname = "rb_plugin_is_configurable")]
		public virtual bool is_configurable ();

		[CCode (cname = "rb_plugin_create_configure_dialog")]
		public virtual Gtk.Widget create_configure_dialog ();

		[CCode (cname = "rb_plugin_find_file")]
		public virtual unowned string find_file (string file);
	}

	[CCode (cheader_filename = "rb-player-gst-filter.h")]
	public interface PlayerGstFilter : GLib.Object {
		[CCode (cname = "rb_player_gst_filter_add_filter")]
		public virtual bool add_filter(Gst.Element e);

		[CCode (cname = "rb_player_gst_filter_remove_filter")]
		public virtual bool remove_filter(Gst.Element e);
	}

	public class Source : GLib.Object
	{
		[NoAccessorMethod]
		public string name {
			owned get; set;
		}

		[NoAccessorMethod]
		public Gdk.Pixbuf icon {
			get; set;
		}

		[NoAccessorMethod]
		public RB.Shell shell {
			owned get; construct set;
		}

		[NoAccessorMethod]
		public bool visibility {
			get; set;
		}

		[NoAccessorMethod]
		public RhythmDB.EntryType entry_type {
			get; construct set;
		}

		[NoAccessorMethod]
		public RB.Plugin plugin {
			get; construct set;
		}

		[HasEmitter]
		public virtual signal void notify_status_changed ();

		public virtual void impl_activate ();

		public virtual void impl_deactivate ();

		public virtual void impl_get_status (out string text, out string progress_text, out float progress);

		public virtual void delete_thyself ();

	}

	[CCode(cheader_filename="rb-browser-source.h")]
	public class BrowserSource : RB.Source
	{

	}

	[NoCompact, CCode (cheader_filename = "rb-shell-player.h")]
	public class ShellPlayer : Gtk.HBox {

		[CCode (cname = "rb_shell_player_pause")]
		public bool pause(ref GLib.Error? err);

		[CCode (cname = "rb_shell_player_play")]
		public bool play(ref GLib.Error? err);

		[CCode (cname = "rb_shell_player_stop")]
		public bool stop();

		[CCode (cname = "rb_shell_player_get_playing")]
		public bool get_playing(ref bool playing, ref GLib.Error? err);

		[CCode (cname = "rb_shell_player_do_next")]
		public bool do_next(ref GLib.Error? err);

		[CCode (cname = "rb_shell_player_do_previous")]
		public bool do_previous(ref GLib.Error? err);

		public virtual signal void playing_changed(bool playing);
	}

	[CCode (cheader_filename = "rb-player.h")]
	public interface Player : GLib.Object {
		[CCode (cname = "rb_player_opened")]
		public bool opened();
	}
}