diff options
Diffstat (limited to 'xbmc/video/jobs/VideoLibraryResetResumePointJob.h')
-rw-r--r-- | xbmc/video/jobs/VideoLibraryResetResumePointJob.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/xbmc/video/jobs/VideoLibraryResetResumePointJob.h b/xbmc/video/jobs/VideoLibraryResetResumePointJob.h new file mode 100644 index 0000000..1e2d69a --- /dev/null +++ b/xbmc/video/jobs/VideoLibraryResetResumePointJob.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2017-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#include "FileItem.h" +#include "video/jobs/VideoLibraryJob.h" + +#include <memory> + +/*! + \brief Video library job implementation for resetting a resume point. + */ +class CVideoLibraryResetResumePointJob : public CVideoLibraryJob +{ +public: + /*! + \brief Creates a new job for resetting a given item's resume point. + + \param[in] item Item for that the resume point shall be reset. + */ + CVideoLibraryResetResumePointJob(const std::shared_ptr<CFileItem>& item); + ~CVideoLibraryResetResumePointJob() override = default; + + const char *GetType() const override { return "CVideoLibraryResetResumePointJob"; } + bool operator==(const CJob* job) const override; + +protected: + bool Work(CVideoDatabase &db) override; + +private: + std::shared_ptr<CFileItem> m_item; +}; |