kodi
MusicLibraryCleaningJob.h
1 /*
2  * Copyright (C) 2017-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "music/jobs/MusicLibraryProgressJob.h"
12 
13 #include <set>
14 
19 {
20 public:
26  ~CMusicLibraryCleaningJob() override;
27 
28  // specialization of CJob
29  const char *GetType() const override { return "MusicLibraryCleaningJob"; }
30  bool operator==(const CJob* job) const override;
31 
32 protected:
33  // implementation of CMusicLibraryJob
34  bool Work(CMusicDatabase &db) override;
35 
36 private:
37 
38 };
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Class to store and read tag information.
Definition: MusicDatabase.h:98
Combined base implementation of a music library job with a progress bar.
Definition: MusicLibraryProgressJob.h:17
Music library job implementation for cleaning the video library.
Definition: MusicLibraryCleaningJob.h:18
const char * GetType() const override
Function that returns the type of job.
Definition: MusicLibraryCleaningJob.h:29
CMusicLibraryCleaningJob(CGUIDialogProgress *progressDialog)
Creates a new music library cleaning job.
Definition: MusicLibraryCleaningJob.cpp:14
Definition: GUIDialogProgress.h:16
bool Work(CMusicDatabase &db) override
Worker method to be implemented by an actual implementation.
Definition: MusicLibraryCleaningJob.cpp:36