Libksieve

sieveeditorloadprogressindicator.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include <KPixmapSequence>
9#include <QObject>
10class QTimer;
11namespace KSieveUi
12{
13class SieveEditorLoadProgressIndicator : public QObject
14{
16public:
17 explicit SieveEditorLoadProgressIndicator(QObject *parent = nullptr);
18 ~SieveEditorLoadProgressIndicator() override;
19
20 void startAnimation();
21 void stopAnimation(bool success);
22
24 void pixmapChanged(const QPixmap &);
25 void loadFinished(bool success);
26
27private:
28 Q_DISABLE_COPY(SieveEditorLoadProgressIndicator)
29 void slotTimerDone();
30 int mProgressCount = 0;
31 KPixmapSequence mProgressPix;
32 QTimer *const mProgressTimer;
33};
34}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.