[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / video / jobs / VideoLibraryMarkWatchedJob.h
blobe683b3f1aea645aed8b82fa4650cd56ffdf63f5c
1 /*
2 * Copyright (C) 2014-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "video/jobs/VideoLibraryJob.h"
13 #include <memory>
15 class CFileItem;
17 /*!
18 \brief Video library job implementation for marking items as watched/unwatched.
20 class CVideoLibraryMarkWatchedJob : public CVideoLibraryJob
22 public:
23 /*!
24 \brief Creates a new video library scanning job.
26 \param[in] item Item to be marked as watched/unwatched
27 \param[in] mark Whether to mark the item as watched or unwatched
29 CVideoLibraryMarkWatchedJob(const std::shared_ptr<CFileItem>& item, bool mark);
30 ~CVideoLibraryMarkWatchedJob() override;
32 const char *GetType() const override { return "CVideoLibraryMarkWatchedJob"; }
33 bool operator==(const CJob* job) const override;
35 protected:
36 bool Work(CVideoDatabase &db) override;
38 private:
39 std::shared_ptr<CFileItem> m_item;
40 bool m_mark;