File indexing completed on 2024-05-12 16:02:30

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org>
0003  * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  */
0007 #ifndef KO_PROGRESS_PROXY
0008 #define KO_PROGRESS_PROXY
0009 
0010 #include "kritawidgetutils_export.h"
0011 
0012 class QString;
0013 
0014 /**
0015  * A proxy interface for a real progress status reporting thing, either
0016  * a widget such as a KoProgressProxy childclass that also inherits this
0017  * interface, or something that prints progress to stdout.
0018  */
0019 class KRITAWIDGETUTILS_EXPORT KoProgressProxy
0020 {
0021 
0022 public:
0023 
0024     virtual ~KoProgressProxy() { }
0025 
0026     virtual int maximum() const = 0;
0027     virtual void setValue(int value) = 0;
0028     virtual void setRange(int minimum, int maximum) = 0;
0029     virtual void setFormat(const QString &format) = 0;
0030     virtual void setAutoNestedName(const QString &name);
0031 };
0032 
0033 
0034 #endif