24 #ifndef _LV_SONGINFO_H
25 #define _LV_SONGINFO_H
27 #include <libvisual/lv_types.h>
28 #include <libvisual/lv_time.h>
29 #include <libvisual/lv_video.h>
72 explicit SongInfo (SongInfoType type);
90 void set_type (SongInfoType type);
92 SongInfoType get_type ()
const;
100 void set_simple_name (std::string
const& name);
107 std::string get_simple_name ()
const;
116 void set_length (
int length);
123 int get_length ()
const;
132 void set_elapsed (
int elapsed);
134 int get_elapsed ()
const;
143 void set_artist (std::string
const& artist);
145 std::string get_artist ()
const;
154 void set_album (std::string
const& album);
156 std::string get_album ()
const;
165 void set_song (std::string
const& name);
167 std::string get_song ()
const;
178 void set_cover (
VideoPtr const& cover);
200 std::string m_song_name;
201 std::string m_artist;
223 LV_API
void visual_songinfo_free (
VisSongInfo *songinfo);
231 LV_API
void visual_songinfo_set_length (
VisSongInfo *songinfo,
int length);
232 LV_API
int visual_songinfo_get_length (
VisSongInfo *songinfo);
234 LV_API
void visual_songinfo_set_elapsed (
VisSongInfo *songinfo,
int elapsed);
235 LV_API
int visual_songinfo_get_elapsed (
VisSongInfo *songinfo);
237 LV_API
void visual_songinfo_set_simple_name (
VisSongInfo *songinfo,
const char *name);
238 LV_API
const char *visual_songinfo_get_simple_name (
VisSongInfo *songinfo);
240 LV_API
void visual_songinfo_set_artist (
VisSongInfo *songinfo,
const char *artist);
241 LV_API
const char *visual_songinfo_get_artist (
VisSongInfo *songinfo);
243 LV_API
void visual_songinfo_set_album (
VisSongInfo *songinfo,
const char *album);
244 LV_API
const char *visual_songinfo_get_album (
VisSongInfo *songinfo);
246 LV_API
void visual_songinfo_set_song (
VisSongInfo *songinfo,
const char *song);
247 LV_API
const char *visual_songinfo_get_song (
VisSongInfo *songinfo);
252 LV_API
void visual_songinfo_mark (
VisSongInfo *songinfo);
254 LV_API
long visual_songinfo_get_age (
VisSongInfo *songinfo);