Krita Source Code Documentation
Loading...
Searching...
No Matches
KoResourceSignature.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 <QDebug>
9
13
14KoResourceSignature::KoResourceSignature(const QString &_type, const QString &_md5sum, const QString &_filename, const QString &_name)
15 : type(_type),
16 md5sum(_md5sum),
17 filename(_filename),
18 name(_name)
19{
20}
21
23{
24 return lhs.md5sum == rhs.md5sum && lhs.filename == rhs.filename && lhs.name == rhs.name;
25}
26
27QDebug operator<<(QDebug dbg, const KoResourceSignature &sig)
28{
29 dbg.nospace() << "KoResourceSignature("
30 << sig.type << ", "
31 << sig.md5sum << ", "
32 << sig.filename << ", "
33 << sig.name << ")";
34
35 return dbg.space();
36}
bool operator==(const KoResourceSignature &lhs, const KoResourceSignature &rhs)
QDebug operator<<(QDebug dbg, const KoResourceSignature &sig)
A simple wrapper object for the main information about the resource.