#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QSettings>

namespace Ui
{
    class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QString desktopName);
    ~Dialog();
    QString getItem();
    bool storePrefer();

private Q_SLOTS:
    void on_checkBox_stateChanged(int arg1);

private:
    QString m_desktopName;
    Ui::Dialog *ui;
    QSettings *configIniWrite;
    QString m_env = "UbuntuKylin22.04";
    int m_flag;
};

#endif // DIALOG_H
