2011-09-12 14:17:22 -04:00
|
|
|
#ifndef LIBSARIA_LIBRARY_H
|
|
|
|
#define LIBSARIA_LIBRARY_H
|
|
|
|
|
2012-09-12 08:15:31 -04:00
|
|
|
#include <fs.h>
|
|
|
|
#include <list.h>
|
|
|
|
#include <track.h>
|
|
|
|
#include <playlist.h>
|
2012-03-15 08:12:22 -04:00
|
|
|
|
2011-09-12 14:17:22 -04:00
|
|
|
#include <string>
|
2012-11-22 14:01:25 -05:00
|
|
|
#include <vector>
|
2011-09-12 14:17:22 -04:00
|
|
|
using namespace std;
|
|
|
|
|
2011-10-01 12:55:32 -04:00
|
|
|
namespace libsaria
|
|
|
|
{
|
2012-01-23 18:11:27 -05:00
|
|
|
|
2011-10-18 10:02:55 -04:00
|
|
|
namespace library
|
|
|
|
{
|
2011-12-29 12:08:32 -05:00
|
|
|
|
2012-03-12 08:21:32 -04:00
|
|
|
struct Path {
|
2012-03-15 08:12:22 -04:00
|
|
|
bool visible;
|
2012-03-24 09:00:44 -04:00
|
|
|
unsigned int id;
|
2012-03-12 08:21:32 -04:00
|
|
|
string path;
|
2012-11-22 14:01:25 -05:00
|
|
|
vector<Track> tracks;
|
2012-03-12 08:21:32 -04:00
|
|
|
};
|
|
|
|
|
2012-03-23 08:08:12 -04:00
|
|
|
void init();
|
2012-03-17 09:00:13 -04:00
|
|
|
void add_path(string);
|
2012-03-31 10:56:35 -04:00
|
|
|
void delete_path(Path *);
|
2012-04-01 18:28:12 -04:00
|
|
|
void update_path(Path *);
|
2012-05-15 10:29:26 -04:00
|
|
|
void save_path(Path *);
|
2012-08-08 08:17:10 -04:00
|
|
|
void update_all();
|
2012-05-23 07:48:10 -04:00
|
|
|
|
|
|
|
void hide_path(Path *);
|
|
|
|
void show_path(Path *);
|
|
|
|
|
2012-04-07 09:28:53 -04:00
|
|
|
Track *lookup(unsigned int, unsigned int);
|
2012-09-16 10:00:07 -04:00
|
|
|
void set_random(bool);
|
2012-03-20 08:30:00 -04:00
|
|
|
Playlist *get_playlist();
|
2012-03-17 09:00:13 -04:00
|
|
|
|
2011-10-18 10:02:55 -04:00
|
|
|
}
|
2011-10-01 12:55:32 -04:00
|
|
|
}
|
2011-09-12 14:17:22 -04:00
|
|
|
|
|
|
|
#endif /* LIBSARIA_LIBRARY_H */
|