You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
#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 |