ocarina/include/libsaria/library.h

70 lines
1.1 KiB
C
Raw Normal View History

#ifndef LIBSARIA_LIBRARY_H
#define LIBSARIA_LIBRARY_H
#include <string>
using namespace std;
namespace libsaria
{
namespace library
{
struct Path {
string path;
};
class Driver {
public:
Driver();
~Driver();
void add_path(string);
virtual void path_added(Path *) = 0;
};
/*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 init();
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 &);
Playlist *get_playlist();*/
}
}
#endif /* LIBSARIA_LIBRARY_H */