Libksieve

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

KDE's Doxygen guidelines are available online.