qTbot
0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
telegramfile.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 TELEGRAMFILE_H
9
#define TELEGRAMFILE_H
10
11
#include "
qTbot/ijsonbasedobject.h
"
12
namespace
qTbot
{
13
17
class
QTBOT_EXPORT
TelegramFile
:
public
IJsonBasedObject
18
{
19
public
:
20
TelegramFile
();
21
26
TelegramFile
(
const
QJsonObject &jsonObject);
27
32
QString fileId()
const
;
33
38
QString fileUniqueId()
const
;
39
44
int
fileSize()
const
;
45
51
[[nodiscard(
"This method return path only one time, plese no discard this."
)]]
52
QString takePath();
53
54
private
:
55
bool
_used =
false
;
56
};
57
}
58
#endif
// TELEGRAMFILE_H
qTbot::IJsonBasedObject
The IJsonBasedObject class This is base interface for all json base objects.
Definition
ijsonbasedobject.h:20
qTbot::TelegramFile
The TelegramFile class is base class for all files.
Definition
telegramfile.h:18
QTBOT_EXPORT
#define QTBOT_EXPORT
Definition
global.h:18
ijsonbasedobject.h
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
messages
telegramfile.h
Generated by
1.9.8