ImagingTools Core SDK
Main Page
Related Pages
Topics
Namespaces
Classes
Examples
ImtCore
Include
imtgui
COpenDocumentWorker.h
1
// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2
#pragma once
3
4
5
// Qt includes
6
#include <QtCore/QByteArray>
7
#include <QtCore/QObject>
8
#include <QtCore/QString>
9
10
11
namespace
imtgui
12
{
13
14
15
class
CDocumentCollectionViewDelegateComp;
16
17
18
struct
OpenDocumentResult
19
{
20
QByteArray objectId;
21
QByteArray typeId;
22
QByteArray viewTypeId;
23
QString objectName;
24
QString tempPath;
25
QString tempFilePath;
26
bool
success =
false
;
27
};
28
29
33
class
COpenDocumentWorker
:
public
QObject
34
{
35
Q_OBJECT
36
public
:
37
COpenDocumentWorker
(
38
const
CDocumentCollectionViewDelegateComp
* parent,
39
const
QByteArray& objectId,
40
const
QByteArray& viewTypeId);
41
42
public
Q_SLOTS:
43
void
Run();
44
45
Q_SIGNALS:
46
void
Finished(
const
OpenDocumentResult& result);
47
48
private
:
49
const
CDocumentCollectionViewDelegateComp
* m_parent =
nullptr
;
50
QByteArray m_objectId;
51
QByteArray m_viewTypeId;
52
};
53
54
55
}
// namespace imtgui
56
57
imtgui::CDocumentCollectionViewDelegateComp
Definition
CDocumentCollectionViewDelegateComp.h:38
imtgui::COpenDocumentWorker
Definition
COpenDocumentWorker.h:34
imtgui
Definition
CApplicationSwitchCommandComp.h:19
Generated by
1.9.8