ocarina/include/libsaria/library.h

59 lines
937 B
C
Raw Normal View History

#ifndef LIBSARIA_LIBRARY_H
#define LIBSARIA_LIBRARY_H
#include <libsaria/track.h>
#include <list>
#include <string>
using namespace std;
namespace libsaria
{
class LibraryPath;
namespace library
{
namespace iter
{
void reset();
libsaria::Track *next();
bool end();
} /* Namespace: iter */
namespace pathiter
{
void reset();
libsaria::LibraryPath *next();
bool end();
}
struct PathInfo {
string path;
unsigned int size;
};
void load();
void save();
void update();
void update_path(string);
void refresh();
string next_file();
void add_path(string);
void remove_path(string);
Track *lookup(sid_t &);
void for_each_path(void (*)(struct PathInfo &));
void list_track(libsaria::Track *);
void unlist_track(libsaria::Track *);
unsigned int size();
void sort_list();
void filter(string &text);
bool is_visible(sid_t &);
}
}
#endif /* LIBSARIA_LIBRARY_H */