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