qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
ijsonbasedobject.h
Go to the documentation of this file.
1
//#
2
//# Copyright (C) 2023-2026 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 IJSONBASEDOBJECT_H
10
#define IJSONBASEDOBJECT_H
11
12
#include "qjsonobject.h"
13
#include "global.h"
14
namespace
qTbot
{
15
19
class
QTBOT_EXPORT
IJsonBasedObject
20
{
21
public
:
25
IJsonBasedObject
();
26
31
IJsonBasedObject
(
const
QJsonObject &newRawJson);
32
37
const
QJsonObject&
rawJson
()
const
;
38
43
virtual
void
setRawJson
(
const
QJsonObject &newRawJson);
44
45
private
:
46
QJsonObject _rawJson;
47
};
48
49
}
50
#endif
// IJSONBASEDOBJECT_H
qTbot::IJsonBasedObject::rawJson
const QJsonObject & rawJson() const
rawJson Telegram uses a rest api with json objects. So all received messages are parsed into a json o...
Definition
ijsonbasedobject.cpp:21
qTbot::IJsonBasedObject::IJsonBasedObject
IJsonBasedObject()
IJsonBasedObject default constructor.
Definition
ijsonbasedobject.cpp:12
qTbot::IJsonBasedObject::setRawJson
virtual void setRawJson(const QJsonObject &newRawJson)
setRawJson This method sets a new raw json data of the object.
Definition
ijsonbasedobject.cpp:25
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
ijsonbasedobject.h
Generated by
1.18.0