Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_uuid_info.h
Go to the documentation of this file.
1/*
2 * Clone info stores information about clone layer's target
3 * SPDX-FileCopyrightText: 2011 Torio Mlshi <mlshi@lavabit.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef kis_node_uuid_info_H
9#define kis_node_uuid_info_H
10
11#include <QUuid>
12#include <QString>
13#include "kritaimage_export.h"
14#include "kis_node.h"
15
16class KRITAIMAGE_EXPORT KisNodeUuidInfo
17{
18
19public:
21 KisNodeUuidInfo(const QUuid& uuid);
22 KisNodeUuidInfo(const QString& name);
24
25public:
26 QUuid uuid()
27 {
28 return m_uuid;
29 }
30
31 QString name()
32 {
33 return m_name;
34 }
35
36public:
37 KisNodeSP findNode(KisNodeSP rootNode);
38
39private:
40 bool check(KisNodeSP node);
41
42private:
43 QUuid m_uuid;
44 QString m_name;
45};
46
47#endif // kis_node_uuid_info_H