1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-02 14:04:22 +00:00

Implement MediaType scan task.

This commit is contained in:
King_DuckZ 2016-03-03 21:31:33 +01:00
parent 5b3e15c45f
commit 6ddf79fad9
5 changed files with 114 additions and 1 deletions

View file

@ -0,0 +1,45 @@
/* Copyright 2015, 2016, Michele Santullo
* This file is part of "dindexer".
*
* "dindexer" is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* "dindexer" 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef id25B0BCA6D9464754920E1BC7C5D9DB57
#define id25B0BCA6D9464754920E1BC7C5D9DB57
#include "dindexer-machinery/scantask/base.hpp"
#include "dindexer-common/mediatypes.hpp"
#include <string>
namespace mchlib {
namespace scantask {
class MediaType : Base<dinlib::MediaTypes> {
public:
MediaType ( char parDefault, bool parForce, std::string parSearchPath );
virtual ~MediaType ( void ) noexcept = default;
private:
virtual void on_data_destroy ( dinlib::MediaTypes& parData );
virtual void on_data_create ( dinlib::MediaTypes& parData );
dinlib::MediaTypes m_default;
#if defined(WITH_MEDIA_AUTODETECT)
std::string m_search_path;
bool m_force;
#endif
};
} //namespace scantask
} //namespace mchlib
#endif