#pragma once

#include "pv/PvApp.h"

class PageTable;

class MaskPageSysmgr : public PvMask
{
public:
    MaskPageSysmgr(PARAM* p);
    int initUI(EPvCode pvcode);

    virtual EPvCode onEventButton(int pvid) override;

    struct {
        int activePage = PV_ID_NUL;
        int pageUser = PV_ID_NUL;
        int pageRole = PV_ID_NUL;
        int pagePermission = PV_ID_NUL;
        int pageStation = PV_ID_NUL;
        int pageDevice = PV_ID_NUL;
        int pagePolicy = PV_ID_NUL;
        int pageSyslog = PV_ID_NUL;
        int pageAlertlog = PV_ID_NUL;
    } ui;

    std::shared_ptr<PageTable> subpage_;

    std::map<int, std::string> mapSubpage_;
};