62 lines
1.9 KiB
Vala
62 lines
1.9 KiB
Vala
[CCode (cheader_filename = "rust.h")]
|
|
namespace Audrey {
|
|
|
|
public class Ui.Playbar : Adw.Bin {
|
|
public PlaybinSong? song { get; set; }
|
|
public Gdk.Paintable? playing_cover_art { get; set; }
|
|
public weak Playbin playbin { get; set; }
|
|
public bool show_cover_art { get; set; /*default = true;*/ }
|
|
public int volume { get; set; }
|
|
}
|
|
|
|
public class Ui.PlayQueueSong : Gtk.Box {
|
|
public bool draggable { get; set; }
|
|
public bool show_position { get; set; }
|
|
public bool show_artist { get; set; }
|
|
public bool show_cover { get; set; }
|
|
public bool current { get; set; }
|
|
public uint displayed_position { get; set; }
|
|
public PlaybinSong song { get; set; }
|
|
|
|
public PlayQueueSong (Playbin playbin);
|
|
public void bind (uint position, PlaybinSong song);
|
|
public void unbind ();
|
|
}
|
|
|
|
public class Ui.PlayQueue : Adw.Bin {
|
|
public Playbin playbin { get; set; }
|
|
public bool can_clear_all { get; }
|
|
}
|
|
|
|
public class Ui.Setup : Adw.PreferencesDialog {
|
|
public string status { get; }
|
|
public bool authn_can_edit { get; }
|
|
public bool authn_can_validate { get; }
|
|
public string server_url { get; set; }
|
|
public string username { get; set; }
|
|
public string password { get; set; }
|
|
|
|
public signal void connected (Subsonic.Client api);
|
|
|
|
public Setup ();
|
|
public void load ();
|
|
public void save ();
|
|
}
|
|
|
|
public class Ui.Window : Adw.ApplicationWindow {
|
|
public int volume { get; set; }
|
|
public bool mute { get; set; }
|
|
|
|
public PlaybinSong? song { get; }
|
|
public Gdk.Paintable? playing_cover_art { get; set; }
|
|
|
|
public bool cover_art_loading { get; set; }
|
|
|
|
public Playbin playbin { get; }
|
|
|
|
public Window (Gtk.Application app);
|
|
|
|
public bool can_click_shuffle_all { get; }
|
|
}
|
|
|
|
}
|