File indexing completed on 2024-05-19 05:28:48
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 namespace Breeze 0012 { 0013 class BusyIndicatorData : public QObject 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 //* constructor 0019 explicit BusyIndicatorData(QObject *parent) 0020 : QObject(parent) 0021 , _animated(false) 0022 { 0023 } 0024 0025 //* destructor 0026 virtual ~BusyIndicatorData() 0027 { 0028 } 0029 0030 //*@name accessors 0031 //@{ 0032 0033 //* animated 0034 bool isAnimated() const 0035 { 0036 return _animated; 0037 } 0038 0039 //@} 0040 0041 //*@name modifiers 0042 //@{ 0043 0044 //* enabled 0045 void setEnabled(bool) 0046 { 0047 } 0048 0049 //* enabled 0050 void setDuration(int) 0051 { 0052 } 0053 0054 //* animated 0055 void setAnimated(bool value) 0056 { 0057 _animated = value; 0058 } 0059 0060 //@} 0061 0062 private: 0063 //* animated 0064 bool _animated; 0065 }; 0066 0067 }