package org.monkey.d.ruffy.ruffy.driver.display;

/**
 * Created by fishermen21 on 22.05.17.
 */

public enum MenuType {
    MAIN_MENU,
    STOP_MENU,
    BOLUS_MENU,
    BOLUS_ENTER,
    EXTENDED_BOLUS_MENU,
    BOLUS_DURATION,
    MULTIWAVE_BOLUS_MENU,
    IMMEDIATE_BOLUS,
    TBR_MENU,
    MY_DATA_MENU,
    BASAL_MENU,
    BASAL_1_MENU,
    BASAL_2_MENU,
    BASAL_3_MENU,
    BASAL_4_MENU,
    BASAL_5_MENU,
    DATE_AND_TIME_MENU,
    ALARM_MENU,
    MENU_SETTINGS_MENU,
    BLUETOOTH_MENU,
    THERAPY_MENU,
    PUMP_MENU,
    QUICK_INFO,
    BOLUS_DATA,
    DAILY_DATA,
    TBR_DATA,
    ERROR_DATA,
    TBR_SET,
    TBR_DURATION,
    STOP,
    START_MENU,
    BASAL_TOTAL,
    BASAL_SET,
    WARNING_OR_ERROR,
}

package org.monkey.d.ruffy.ruffy.driver.display;

/**
 * Created by fishermen21 on 22.05.17.
 */

public enum MenuType {
    MAIN_MENU(true),
    STOP_MENU(true),
    BOLUS_MENU(true),
    BOLUS_ENTER(false),
    EXTENDED_BOLUS_MENU(true),
    BOLUS_DURATION(false),
    MULTIWAVE_BOLUS_MENU(true),
    IMMEDIATE_BOLUS(false),
    TBR_MENU(true),
    MY_DATA_MENU(true),
    BASAL_MENU(true),
    BASAL_1_MENU(true),
    BASAL_2_MENU(true),
    BASAL_3_MENU(true),
    BASAL_4_MENU(true),
    BASAL_5_MENU(true),
    DATE_AND_TIME_MENU(true),
    ALARM_MENU(true),
    MENU_SETTINGS_MENU(true),
    BLUETOOTH_MENU(true),
    THERAPY_MENU(true),
    PUMP_MENU(true),
    QUICK_INFO(false),
    BOLUS_DATA(false),
    DAILY_DATA(false),
    TBR_DATA(false),
    ERROR_DATA(false),
    TBR_SET(false),
    TBR_DURATION(false),
    STOP(false),
    START_MENU(false),
    BASAL_TOTAL(false),
    BASAL_SET(false),
    WARNING_OR_ERROR(false),;

    private boolean maintype = false;
    MenuType(boolean b) {
        maintype=b;
    }

    public boolean isMaintype() {
        return maintype;
    }
}

add type of menu to MenuType (main or sub menu)