File indexing completed on 2024-06-23 05:16:27
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kdepim_export.h" 0010 0011 #include <QWidget> 0012 namespace KPIM 0013 { 0014 class ProgressIndicatorLabelPrivate; 0015 /** 0016 * @brief The ProgressIndicatorLabel class 0017 * @author Laurent Montel <montel@kde.org> 0018 */ 0019 class KDEPIM_EXPORT ProgressIndicatorLabel : public QWidget 0020 { 0021 Q_OBJECT 0022 public: 0023 /** 0024 * @since 4.12 0025 */ 0026 explicit ProgressIndicatorLabel(const QString &labelStr, QWidget *parent = nullptr); 0027 explicit ProgressIndicatorLabel(QWidget *parent = nullptr); 0028 ~ProgressIndicatorLabel() override; 0029 0030 void setActiveLabel(const QString &label); 0031 0032 public Q_SLOTS: 0033 void start(); 0034 void stop(); 0035 0036 private: 0037 friend class ProgressIndicatorLabelPrivate; 0038 std::unique_ptr<ProgressIndicatorLabelPrivate> const d; 0039 }; 0040 }