IFile.h 1.59 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*****************************************************************************
 * Media Library
 *****************************************************************************
 * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
 *
 * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

23 24 25 26
#pragma once

#include <string>

27 28 29
namespace medialibrary
{

30 31 32 33 34 35 36 37
namespace fs
{
    class IFile
    {
    public:
        virtual ~IFile() = default;
        /// Returns the filename, including extension
        virtual const std::string& name() const = 0;
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
38 39
        /// Returns the mrl of this file
        virtual const std::string& mrl() const = 0;
40
        virtual const std::string& extension() const = 0;
41
        virtual unsigned int lastModificationDate() const = 0;
42
        virtual unsigned int size() const = 0;
43 44
    };
}
45 46

}