/* SPDX-FileCopyrightText: 2019 Stefan BrĂ¼ns SPDX-License-Identifier: LGPL-2.0-or-later */ #include #include /* * Deserialize prop from QDataStream */ static inline QDataStream &operator>>(QDataStream &stream, KFileMetaData::Property::Property &prop) { quint16 intProp; stream >> intProp; prop = static_cast(intProp); return stream; } /* * Serialize prop for QDataStream */ static inline QDataStream &operator<<(QDataStream &stream, const KFileMetaData::Property::Property prop) { stream << static_cast(prop); return stream; }