#ifndef GENERALPAGE_H
#define GENERALPAGE_H

#include <memory>
#include <QWidget>

using namespace std;

class GeneralPage : public QWidget
{
    Q_OBJECT
public:
    explicit GeneralPage(QWidget *parent = nullptr);
    ~GeneralPage();
    void updateCloseMode(bool isHideToTray);
signals:
    void sigMinimizeToTrayChanged(bool isMinimizeToTray);

private slots:
    void onWindowActionChanged(int id);

private:
    void initLayout();
    void initConnection();
    void loadConfig();

private:
    class Private;
    shared_ptr<Private> d_ptr;
};

#endif // GENERALPAGE_H
