File indexing completed on 2024-12-22 04:14:54

0001 /*
0002  *  SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: LGPL-2.1-only
0005  */
0006 
0007 #ifndef RECORDER_DIRECTORY_CLEANER_H
0008 #define RECORDER_DIRECTORY_CLEANER_H
0009 
0010 #include <QThread>
0011 #include <QStringList>
0012 
0013 class RecorderDirectoryCleaner : public QThread
0014 {
0015 public:
0016     RecorderDirectoryCleaner(const QStringList &directories);
0017 
0018     void stop();
0019 
0020 protected:
0021     void run() override;
0022 
0023 private:
0024     QStringList directories;
0025 };
0026 
0027 
0028 #endif // RECORDER_DIRECTORY_CLEANER_H