Commit bd21b0c6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

IFile: Make Type a scopped enum

parent 5c0cf4ca
......@@ -13,7 +13,7 @@ class ITrackInformation;
class IFile
{
public:
enum Type
enum class Type : uint8_t
{
VideoType, // Any video file, not being a tv show episode
AudioType, // Any kind of audio file, not being an album track
......
......@@ -34,12 +34,12 @@ File::File( DBConnection dbConnection, sqlite3_stmt* stmt )
m_lastModificationDate = sqlite::Traits<unsigned int>::Load( stmt, 9 );
m_snapshot = sqlite::Traits<std::string>::Load( stmt, 10 );
m_isReady = m_type != UnknownType;
m_isReady = m_type != Type::UnknownType;
}
File::File( const fs::IFile* file, unsigned int folderId )
: m_id( 0 )
, m_type( UnknownType )
, m_type( Type::UnknownType )
, m_duration( 0 )
, m_albumTrackId( 0 )
, m_playCount( 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment