2020-09-16 00:35:12 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2014-2018 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-FileCopyrightText: 2018 Abhijeet Sharma <sharma.abhijeet2096@gmail.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#if !defined(EDITMOUNTPOINTDIALOG_H)
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#define EDITMOUNTPOINTDIALOG_H
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2014-05-17 03:06:58 +01:00
|
|
|
#include <QDialog>
|
2010-01-15 18:08:01 +00:00
|
|
|
|
|
|
|
class EditMountPointDialogWidget;
|
|
|
|
class Partition;
|
|
|
|
|
|
|
|
class QWidget;
|
|
|
|
class QString;
|
|
|
|
|
2018-04-05 22:00:06 +01:00
|
|
|
enum class MountPointAction
|
2018-03-03 16:34:41 +00:00
|
|
|
{
|
2018-03-03 16:39:52 +00:00
|
|
|
Remove,
|
|
|
|
Edit
|
2018-03-03 16:34:41 +00:00
|
|
|
};
|
|
|
|
|
2014-05-17 03:06:58 +01:00
|
|
|
class EditMountPointDialog : public QDialog
|
2010-01-15 18:08:01 +00:00
|
|
|
{
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
|
|
|
EditMountPointDialog(QWidget* parent, Partition& p);
|
|
|
|
~EditMountPointDialog();
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
protected:
|
|
|
|
EditMountPointDialogWidget& widget() {
|
|
|
|
return *m_DialogWidget;
|
|
|
|
}
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2018-03-03 16:34:41 +00:00
|
|
|
void accept_(MountPointAction action);
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
private:
|
|
|
|
Partition& partition() {
|
|
|
|
return m_Partition;
|
|
|
|
}
|
2010-01-15 18:08:01 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
private:
|
|
|
|
Partition& m_Partition;
|
|
|
|
EditMountPointDialogWidget* m_DialogWidget;
|
2010-01-15 18:08:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|