136f12bc7c
The source model class is used to more tightly control how songs are inserted into the UI. I provide an insert() function that the library's for_each() function can take advantage of. This allows me to directly insert songs into the UI rather than having to use a static function as the "middle man"
20 lines
261 B
C++
20 lines
261 B
C++
#ifndef LIBSARIA_SOURCE_H
|
|
#define LIBSARIA_SOURCE_H
|
|
|
|
#include <libsaria/track.h>
|
|
|
|
namespace libsaria
|
|
{
|
|
|
|
class SourceModel
|
|
{
|
|
public:
|
|
SourceModel();
|
|
virtual ~SourceModel() = 0;
|
|
|
|
virtual void insert(Track &) = 0;
|
|
};
|
|
}
|
|
|
|
#endif /* LIBSARIA_SOURCE_H */
|