Krita Source Code Documentation
Loading...
Searching...
No Matches
KisImportUserFeedbackInterface.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#ifndef KISIMPORTUSERFEEDBACKINTERFACE_H
7
#define KISIMPORTUSERFEEDBACKINTERFACE_H
8
9
#include <QtGlobal>
10
#include <functional>
11
12
class
QWidget;
13
18
class
KisImportUserFeedbackInterface
19
{
20
public
:
21
using
AskCallback
= std::function<bool(QWidget*)>;
22
23
enum
Result
{
24
Success
= 0,
25
UserCancelled
,
26
SuppressedByBatchMode
27
};
28
29
public
:
30
KisImportUserFeedbackInterface
() =
default
;
31
32
33
virtual
~KisImportUserFeedbackInterface
();
34
41
virtual
Result
askUser
(
AskCallback
callback) = 0;
42
43
private
:
44
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
45
Q_DISABLE_COPY_MOVE
(
KisImportUserFeedbackInterface
);
46
#else
47
KisImportUserFeedbackInterface
(
const
KisImportUserFeedbackInterface
&) =
delete
;
48
KisImportUserFeedbackInterface
(
KisImportUserFeedbackInterface
&&) =
delete
;
49
#endif
50
};
51
52
#endif
// KISIMPORTUSERFEEDBACKINTERFACE_H
KisImportUserFeedbackInterface
Definition
KisImportUserFeedbackInterface.h:19
KisImportUserFeedbackInterface::askUser
virtual Result askUser(AskCallback callback)=0
ask the user a question about the loading process
KisImportUserFeedbackInterface::AskCallback
std::function< bool(QWidget *)> AskCallback
Definition
KisImportUserFeedbackInterface.h:21
KisImportUserFeedbackInterface::~KisImportUserFeedbackInterface
virtual ~KisImportUserFeedbackInterface()
KisImportUserFeedbackInterface::Result
Result
Definition
KisImportUserFeedbackInterface.h:23
KisImportUserFeedbackInterface::UserCancelled
@ UserCancelled
Definition
KisImportUserFeedbackInterface.h:25
KisImportUserFeedbackInterface::Success
@ Success
Definition
KisImportUserFeedbackInterface.h:24
KisImportUserFeedbackInterface::SuppressedByBatchMode
@ SuppressedByBatchMode
Definition
KisImportUserFeedbackInterface.h:26
KisImportUserFeedbackInterface::Q_DISABLE_COPY_MOVE
Q_DISABLE_COPY_MOVE(KisImportUserFeedbackInterface)
KisImportUserFeedbackInterface::KisImportUserFeedbackInterface
KisImportUserFeedbackInterface()=default
libs
ui
KisImportUserFeedbackInterface.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52