Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
universaldata.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 UNIVERSALDATA_H
9#define UNIVERSALDATA_H
10
11#include "abstractdata.h"
12
13namespace QH {
14namespace PKG {
15
51{
52public:
54
60 void setValue(int key, const QVariant& value);
61
66 const QVariant& value(int key, const QVariant& defaultVal = {}) const;
67
73 QVariant* ref(int key);
74
75protected:
76 QDataStream &fromStream(QDataStream &stream) override final;
77 QDataStream &toStream(QDataStream &stream) const override final;
78
79private:
80 QHash<int, QVariant> _data;
81};
82
83}
84}
85
86#endif // UNIVERSALDATA_H
The AbstractData class is provide base functions for transport data by network For create you own pac...
The UniversalData class contains all data of object in the QMap Use this package if you want to chang...
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13