qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
filewaiter.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2024 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8
9#ifndef FILEWAITER_H
10#define FILEWAITER_H
11
12#include "ifile.h"
13
14namespace qTbot {
15
20class QTBOT_EXPORT FileWaiter: public QObject
21{
22 Q_OBJECT
23public:
24 FileWaiter();
25
32 void wait(const QSharedPointer<iFile>& file);
33
34private slots:
35 void handleFileFinished();
36
37private:
38 QHash<size_t, QSharedPointer<iFile>> _files;
39
40
41};
42}
43#endif // FILEWAITER_H
The FileWaiter class. This is a simple storage for the shared pointer of files. All added files will ...
Definition filewaiter.h:21
#define QTBOT_EXPORT
Definition global.h:18