MediaLibrary.h 489 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
18
19
20
21

    private:
        sqlite3* m_dbConnection;
};

#endif // MEDIALIBRARY_H