Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_snapshots_scanner.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#ifndef RECORDERSNAPSHOTSSCANNER_H
8#define RECORDERSNAPSHOTSSCANNER_H
9
10#include <QThread>
11#include <QDateTime>
12
14{
15 QString path;
16 QString name;
17 quint64 size = 0;
18 QDateTime dateTime;
19 QString thumbnail;
20};
22
23
24class RecorderSnapshotsScanner : public QThread
25{
26 Q_OBJECT
27public:
30
31 void setup(const QString &snapshotDirectory);
32 void stop();
33
34Q_SIGNALS:
36
37protected:
38 void run() override;
39
40private:
41 SnapshotDirInfo readSnapshotDirInfo(const QString &path) const;
42
43private:
45};
46
47#endif // RECORDERSNAPSHOTSSCANNER_H
void scanningFinished(SnapshotDirInfoList snapshots)
SnapshotDirInfo readSnapshotDirInfo(const QString &path) const
void setup(const QString &snapshotDirectory)
QList< SnapshotDirInfo > SnapshotDirInfoList