qTbot
0.89.ee6949a
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
14
namespace
qTbot
{
15
19
class
QTBOT_EXPORT
File
:
public
iFile
20
{
21
Q_OBJECT
22
public
:
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
31
protected
slots:
32
void
handleReadReady()
override
;
33
void
handleFinished()
override
;
34
void
handleError(QNetworkReply::NetworkError error)
override
;
35
private
:
36
QFile _localFile;
37
38
};
39
}
40
#endif
// FILE_H
qTbot::File
The File class is implementations for local files.
Definition
file.h:20
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
file.h
Generated by
1.9.8