File indexing completed on 2024-05-19 16:31:38
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Dominik Haumann <dhaumann@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 #ifndef PLASMA_QUOTA_ITEM_H 0007 #define PLASMA_QUOTA_ITEM_H 0008 0009 #include <QMetaType> 0010 #include <QString> 0011 0012 /** 0013 * Class that holds all quota info for one mount point. 0014 */ 0015 class QuotaItem 0016 { 0017 public: 0018 QuotaItem(); 0019 0020 QString mountPoint() const; 0021 void setMountPoint(const QString &mountPoint); 0022 0023 int usage() const; 0024 void setUsage(int usage); 0025 0026 QString iconName() const; 0027 void setIconName(const QString &name); 0028 0029 QString mountString() const; 0030 void setMountString(const QString &mountString); 0031 0032 QString usedString() const; 0033 void setUsedString(const QString &usedString); 0034 0035 QString freeString() const; 0036 void setFreeString(const QString &freeString); 0037 0038 bool operator==(const QuotaItem &other) const; 0039 bool operator!=(const QuotaItem &other) const; 0040 0041 private: 0042 QString m_iconName; 0043 QString m_mountPoint; 0044 int m_usage; 0045 QString m_mountString; 0046 QString m_usedString; 0047 QString m_freeString; 0048 }; 0049 0050 Q_DECLARE_METATYPE(QuotaItem) 0051 0052 #endif // PLASMA_QUOTA_ITEM_H