MediaLibrary.h 773 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef MEDIALIBRARY_H
#define MEDIALIBRARY_H

#include <sqlite3.h>

#include "IMediaLibrary.h"

class MediaLibrary : public IMediaLibrary
{
    public:
        MediaLibrary();
        virtual bool initialize( const std::string& dbPath );
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
13
14
15
        virtual bool files( std::vector<FilePtr>& res );
        virtual FilePtr file( const std::string& path );
        virtual FilePtr addFile( const std::string& path );
16
17
        virtual bool deleteFile( const std::string& mrl );
        virtual bool deleteFile( FilePtr file );
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
18
19
20
        virtual LabelPtr createLabel( const std::string& label );
        virtual bool deleteLabel(const std::string& text );
        virtual bool deleteLabel( LabelPtr label );
21
22
23
24
    private:
        sqlite3* m_dbConnection;
};
#endif // MEDIALIBRARY_H