#ifndef SYSTEMSETTINGFORM_H
#define SYSTEMSETTINGFORM_H

#include <QWidget>
class QPushButton;
class QVBoxLayout;
class SelectDialog;
class QLineEdit;
class ImageSwitch;

namespace Ui {
	class systemSettingForm;
}

class systemSettingForm : public QWidget
{
	Q_OBJECT

public:
	explicit systemSettingForm(QWidget* parent = nullptr);
	~systemSettingForm();
	//protected:
	//	void changeEvent(QEvent* event);

private:
	void updateStorageSize();
	void updateStorageUsed();

	Ui::systemSettingForm* ui;

	SelectDialog* sd_protocal = nullptr;
	SelectDialog* sd_filter = nullptr;

	QThread* diskInfoCaller = nullptr;

	double m_disksize;
	double m_diskuse;
	bool flag_disksize = false;
	bool flag_diskuse = false;
};

#endif // SYSTEMSETTINGFORM_H
