Krita Source Code Documentation
Loading...
Searching...
No Matches
KoEmbeddedResource.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
7
8#include <KoMD5Generator.h>
9
13
15 : m_sig(sig),
16 m_data(data)
17{
18
19}
20
25
26QByteArray KoEmbeddedResource::data() const
27{
28 return m_data;
29}
30
35
37{
38 return !m_data.isEmpty();
39}
const KoResourceSignature & signature() const
QByteArray data() const
KoResourceSignature m_sig
static QString generateHash(const QString &filename)
generateHash reads the given file and generates a hex-encoded md5sum for the file.
A simple wrapper object for the main information about the resource.