qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
file.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 FILE_H
10#define FILE_H
11
12#include "ifile.h"
13
14namespace qTbot {
15
19class QTBOT_EXPORT File: public iFile
20{
21 Q_OBJECT
22public:
23 File(const QSharedPointer<QNetworkReply>& replay, const QString &filePath);
24 File(const QString &filePath);
25
26 const QFile & localFile() const;
27
28 Type type() const override;
29
30 // iFile interface
31protected slots:
32 void handleReadReady() override;
33 void handleFinished() override;
34 void handleError(QNetworkReply::NetworkError error) override;
35private:
36 QFile _localFile;
37
38};
39}
40#endif // FILE_H
The File class is implementations for local files.
Definition file.h:20
The iFile class This is main interface for all implementations of the files.
Definition ifile.h:21
Type
The Type enum is type of the file object.
Definition ifile.h:28
#define QTBOT_EXPORT
Definition global.h:18