qTbot
0.89.ee6949a
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
13
namespace
qTbot
{
14
18
class
QTBOT_EXPORT
VirtualFile
:
public
iFile
19
{
20
public
:
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
29
protected
slots:
30
void
handleReadReady()
override
;
31
void
handleFinished()
override
;
32
void
handleError(QNetworkReply::NetworkError error)
override
;
33
34
private
:
35
QByteArray _array;
36
};
37
38
}
39
#endif
// VIRTUALFILE_H
qTbot::VirtualFile
The VirtualFile class write and read data from the Ram.
Definition
virtualfile.h:19
qTbot::iFile
The iFile class This is main interface for all implementations of the files.
Definition
ifile.h:21
qTbot::iFile::Type
Type
The Type enum is type of the file object.
Definition
ifile.h:28
QTBOT_EXPORT
#define QTBOT_EXPORT
Definition
global.h:18
ifile.h
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
virtualfile.h
Generated by
1.9.8