#ifndef SYSTEM_CMD_QUOTAS #define SYSTEM_CMD_QUOTAS #include "project_lib.h" #include "my_type.h" #include "my_process.h" #include "util.h" namespace Quotas_sys { class Quotas_sys { public: map_str_str map_hw_or_sw; map_str_str* map_gui_cfg; My_Process::My_Process_system obj_process_system = My_Process::My_Process_system(); My_Process::My_Process_call obj_process_call = My_Process::My_Process_call(); public: Quotas_sys(); void set_map_gui(map_str_str &map_gui); void format_cmd_quotas_ubconfig(struct struct_quotas& _struct_quota); void format_cmd_quotas_system(struct struct_quotas& _struct_quota); void off_quota_ubconfig(Gtk::ComboBoxText* combo_box, string quota_type); void off_quota_system(Gtk::ComboBoxText* combo_box, string quota_type); bool check_on_quotas_system(string cmd); struct status_quotas check_on_quotas_system_2_hw(string params); bool on_quota_hw(string partition, string cmd_hw, string cmd_sw); bool on_quota_sw(string partition, int mode); }; } #endif