qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
virtualfile.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#ifndef VIRTUALFILE_H
9#define VIRTUALFILE_H
10
11#include "ifile.h"
12
13namespace qTbot {
14
19{
20public:
21 VirtualFile(const QSharedPointer<QNetworkReply>& replay = nullptr);
22
23 // iFile interface
24 const QByteArray &array() const;
25 Type type() const override;
26
27 void setArray(const QByteArray &newArray);
28
29protected slots:
30 void handleReadReady() override;
31 void handleFinished() override;
32 void handleError(QNetworkReply::NetworkError error) override;
33
34private:
35 QByteArray _array;
36};
37
38}
39#endif // VIRTUALFILE_H
The VirtualFile class write and read data from the Ram.
Definition virtualfile.h:19
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