19 #ifndef LIBMDM_MDM_PHONE_RESTRICTION_H 20 #define LIBMDM_MDM_PHONE_RESTRICTION_H 24 #include "mdm_client_type.h" 25 #include "device_inventory.h" 383 mdm_data_t *mdm_msim_get_allowed_incoming_call(
const char *simid,
int n_all_admin);
421 mdm_data_t *mdm_msim_get_allowed_outgoing_call(
const char *simid,
int n_all_admin);
458 mdm_data_t *mdm_msim_get_allowed_incoming_sms(
const char *simid,
int n_all_admin);
496 mdm_data_t *mdm_msim_get_allowed_outgoing_sms(
const char *simid,
int n_all_admin);
558 size_t *p_recv_limit);
1142 mdm_result_t mdm_msim_add_allowed_incoming_call(
const char *
id,
const char *p_pattern);
1193 mdm_result_t mdm_msim_add_allowed_outgoing_call(
const char *
id,
const char *p_pattern);
1244 mdm_result_t mdm_msim_add_allowed_incoming_sms(
const char *
id,
const char *p_pattern);
1295 mdm_result_t mdm_msim_add_allowed_outgoing_sms(
const char *
id,
const char *p_pattern);
1552 const char *msisdn);
1836 unsigned int limitbymonth);
1884 unsigned int limitbymonth);
1932 unsigned int limitbymonth);
1980 unsigned int limitbymonth);
2114 mdm_result_t mdm_msim_add_incoming_call_restriction(
const char *
id,
char *p_pattern);
2160 mdm_result_t mdm_msim_add_incoming_sms_restriction(
const char *
id,
char *p_pattern);
2206 mdm_result_t mdm_msim_add_outgoing_call_restriction(
const char *
id,
char *p_pattern);
2252 mdm_result_t mdm_msim_add_outgoing_sms_restriction(
const char *
id,
char *p_pattern);
2296 mdm_result_t mdm_msim_set_incoming_call_restriction(
const char *
id,
char *p_pattern);
2340 MDM_DEPRECATED_API
mdm_result_t mdm_msim_set_incoming_sms_restriction(
const char *
id,
char *p_pattern);
2385 mdm_result_t mdm_msim_set_outgoing_call_restriction(
const char *
id,
char *p_pattern);
2430 MDM_DEPRECATED_API
mdm_result_t mdm_msim_set_outgoing_sms_restriction(
const char *
id,
char *p_pattern);
2462 mdm_data_t *mdm_msim_get_incoming_call_restriction(
const char *
id,
int n_all_admin);
2494 mdm_data_t *mdm_msim_get_incoming_sms_restriction(
const char *
id,
int n_all_admin);
2526 mdm_data_t *mdm_msim_get_outgoing_call_restriction(
const char *
id,
int n_all_admin);
2558 mdm_data_t *mdm_msim_get_outgoing_sms_restriction(
const char *
id,
int n_all_admin);
2601 mdm_result_t mdm_msim_remove_incoming_call_restriction(
const char *
id);
2644 mdm_result_t mdm_msim_remove_incoming_sms_restriction(
const char *
id);
2687 mdm_result_t mdm_msim_remove_outgoing_call_restriction(
const char *
id);
2730 mdm_result_t mdm_msim_remove_allowed_incoming_call(
const char *
id);
2773 mdm_result_t mdm_msim_remove_outgoing_sms_restriction(
const char *
id);
2816 mdm_result_t mdm_msim_remove_allowed_outgoing_call(
const char *
id);
2859 mdm_result_t mdm_msim_remove_allowed_incoming_sms(
const char *
id);
2902 mdm_result_t mdm_msim_remove_allowed_outgoing_sms(
const char *
id);
2934 mdm_data_t *mdm_msim_get_incoming_call_restriction(
const char *
id,
int n_all_admin);
2966 mdm_data_t *mdm_msim_get_incoming_sms_restriction(
const char *
id,
int n_all_admin);
2998 mdm_data_t *mdm_msim_get_outgoing_call_restriction(
const char *
id,
int n_all_admin);
3030 mdm_data_t *mdm_msim_get_outgoing_sms_restriction(
const char *
id,
int n_all_admin);
3073 mdm_result_t mdm_msim_remove_incoming_call_restriction(
const char *
id);
3116 mdm_result_t mdm_msim_remove_incoming_sms_restriction(
const char *
id);
3159 mdm_result_t mdm_msim_remove_outgoing_call_restriction(
const char *
id);
3202 mdm_result_t mdm_msim_remove_outgoing_sms_restriction(
const char *
id);
3280 mdm_status_t mdm_msim_get_emergency_call_only_enabled(
const char *
id);
3391 mdm_result_t mdm_msim_set_assign_voice_calls_and_messages_to_sim(
const char *
id);
3450 mdm_data_t *mdm_msim_get_assign_voice_calls_and_messages_to_sim(
void);
3502 mdm_result_t mdm_msim_set_assign_data_calls_to_sim(
const char *
id);
3557 mdm_data_t *mdm_msim_get_assign_data_calls_to_sim(
void);
3638 mdm_status_t mdm_msim_is_user_allowed_assign_voice_calls_and_messages_to_sim(
const char *
id);
3671 mdm_status_t mdm_msim_is_user_allowed_assign_data_calls_to_sim(
const char *
id);
3797 mdm_result_t mdm_change_sim_pin_code(
const char *current_pin_code,
const char *new_pin_code);
3852 mdm_result_t mdm_enable_sim_pin_lock(
const char *pin_code);
3903 mdm_result_t mdm_disable_sim_pin_lock(
const char *pin_code);
4030 mdm_status_t knox_mdm_get_allow_mobile_data_change(
const char *sim_id);
4252 mdm_result_t mdm_msim_set_limit_of_incoming_calls(
const char *
id,
unsigned int limitbyday,
unsigned int limitbyweek,
4253 unsigned int limitbymonth);
4301 mdm_result_t mdm_msim_set_limit_of_incoming_sms(
const char *
id,
unsigned int limitbyday,
unsigned int limitbyweek,
4302 unsigned int limitbymonth);
4350 mdm_result_t mdm_msim_set_limit_of_outgoing_calls(
const char *
id,
unsigned int limitbyday,
unsigned int limitbyweek,
4351 unsigned int limitbymonth);
4399 mdm_result_t mdm_msim_set_limit_of_outgoing_sms(
const char *
id,
unsigned int limitbyday,
unsigned int limitbyweek,
4400 unsigned int limitbymonth);
4444 mdm_status_t mdm_msim_get_data_call_limit_enabled(
const char *
id);
4479 mdm_status_t mdm_msim_get_limit_number_of_calls_enabled(
const char *
id);
4514 mdm_status_t mdm_msim_get_limit_number_of_sms_enabled(
const char *
id);
4577 mdm_result_t mdm_msim_get_limit_of_data_calls(
const char *
id, time_t *p_date_set, time_t *p_period,
4578 size_t *p_send_limit,
size_t *p_recv_limit);
4797 mdm_result_t mdm_msim_set_limit_of_data_calls(
const char *
id, time_t period,
size_t sent_limit,
size_t recv_limit);
4840 extern mdm_result_t mdm_msim_reset_call_limit_count(
const char *
id);
4883 extern mdm_result_t mdm_msim_reset_sms_limit_count(
const char *
id);
4890 extern mdm_result_t mdm_msim_reset_data_call_limit_count(
const char *
id);
4907 #endif // LIBMDM_MDM_PHONE_RESTRICTION_H mdm_result_t mdm_add_incoming_call_restriction(char *p_pattern)
API to add a restriction pattern to the admin restriction pattern set for incoming calls...
mdm_status_t mdm_get_limit_number_of_calls_enabled(void)
API to check if number of calls are limited.
mdm_data_t * mdm_get_incoming_call_restriction(int n_all_admin)
API to get the restriction pattern for incoming calls.
This structure is used to store GList.
mdm_status_t mdm_get_data_call_limit_enabled(void)
API to check whether data carrier network usage limit is enabled or not.
mdm_result_t mdm_set_incoming_sms_restriction(char *p_pattern)
API to set a restriction pattern to be matched by incoming SMSs numbers.
mdm_result_t mdm_set_limit_of_data_calls(time_t period, size_t sent_limit, size_t recv_limit)
API to set the combined limit of data packet for given period.
mdm_call_limit_t
The the number of call limit by day/week/month.
mdm_result_t mdm_enable_limit_number_of_calls(mdm_status_t status)
API to enable or disable limit of number of calls.
mdm_data_t * mdm_get_incoming_sms_restriction(int n_all_admin)
API to get the restriction pattern for incoming SMS.
mdm_result_t mdm_set_limit_of_outgoing_calls(unsigned int limitbyday, unsigned int limitbyweek, unsigned int limitbymonth)
API to set the limit of number of outgoing calls per day, week and month.
mdm_result_t mdm_enable_emergency_call_only(mdm_status_t status)
API to enable or disable emergency calls only on device.
mdm_status_t
MDM Policy status.
mdm_result_t mdm_remove_incoming_call_restriction(void)
API to remove the restriction pattern for incoming calls set by the calling admin.
mdm_result_t mdm_set_limit_of_outgoing_sms(unsigned int limitbyday, unsigned int limitbyweek, unsigned int limitbymonth)
API to set the limit of number of outgoing SMSs per day, week and month.
mdm_result_t mdm_set_outgoing_sms_restriction(char *p_pattern)
API to set a restriction pattern to be matched by outgoing sms numbers.
mdm_call_type_t
The the call types for operations.
mdm_result_t mdm_set_incoming_call_restriction(char *p_pattern)
API to set a restriction pattern to be matched by incoming call numbers.
mdm_result_t mdm_add_incoming_sms_restriction(char *p_pattern)
API to add a restriction pattern to the admin restriction pattern set for incoming SMSs...
mdm_result_t mdm_reset_sms_limit_count(void)
API to reset the counters for incoming or outgoing SMSs.
mdm_result_t mdm_reset_call_limit_count(void)
API to reset the counters for incoming and outgoing calls.
mdm_result_t mdm_enable_data_call_limit(mdm_status_t status)
API to enable limit of data packet on the device.
mdm_result_t mdm_set_limit_of_incoming_calls(unsigned int limitbyday, unsigned int limitbyweek, unsigned int limitbymonth)
API to set the limit of number of incoming calls per day, week and month.
mdm_result_t mdm_set_limit_of_incoming_sms(unsigned int limitbyday, unsigned int limitbyweek, unsigned int limitbymonth)
API to set the limit of number of incoming SMSs per day, week and month.
mdm_result_t mdm_get_limit_of_outgoing_calls(mdm_call_limit_t type, unsigned int *p_value)
API to get the limit of outgoing calls for day, week or month.
mdm_data_t * mdm_get_outgoing_call_restriction(int n_all_admin)
API to get the restriction pattern for outgoing calls.
mdm_result_t mdm_get_limit_of_incoming_calls(mdm_call_limit_t type, unsigned int *p_value)
API to get the limit of incoming calls for day, week or month.
mdm_result_t mdm_get_limit_of_data_calls(time_t *p_date_set, time_t *p_period, size_t *p_send_limit, size_t *p_recv_limit)
API to get the limits of sent and received data for mobile carriers.
mdm_result_t mdm_get_limit_of_incoming_sms(mdm_sms_limit_t type, unsigned int *p_value)
API to get the limit of incoming SMSs for day, week or month.
mdm_result_t mdm_add_outgoing_call_restriction(char *p_pattern)
API to add a restriction pattern to the admin restriction pattern set for outgoing calls...
mdm_result_t mdm_remove_outgoing_call_restriction(void)
API to remove the restriction pattern for outgoing calls set by the calling admin.
mdm_result_t
MDM API result.
mdm_result_t mdm_add_outgoing_sms_restriction(char *p_pattern)
API to add a restriction pattern to the admin restriction pattern set for outgoing SMSs...
mdm_sms_limit_t
The the number of sms limit by day/week/month.
mdm_result_t mdm_set_outgoing_call_restriction(char *p_pattern)
API to set a restriction pattern to be matched by outgoing call numbers.
mdm_result_t mdm_get_limit_of_outgoing_sms(mdm_sms_limit_t type, unsigned int *p_value)
API to get the limit of outgoing SMSs for day, week or month.
mdm_status_t mdm_get_emergency_call_only_enabled(void)
API to check if only emergency calls are allowed on device.
mdm_result_t mdm_remove_incoming_sms_restriction(void)
API to remove the restriction pattern for incoming SMSs set by the calling admin. ...
mdm_status_t mdm_get_limit_number_of_sms_enabled(void)
API to check if number of SMSs are limited.
mdm_data_t * mdm_get_outgoing_sms_restriction(int n_all_admin)
API to get the restriction pattern for outgoing SMS.
mdm_result_t mdm_enable_limit_number_of_sms(mdm_status_t status)
API to enable or disable limit of number of SMSs.
mdm_result_t mdm_reset_data_call_limit_count(void)
API to reset the counters of amount of data packet sent and received on device.
mdm_result_t mdm_remove_outgoing_sms_restriction(void)
API to remove the restriction pattern for outgoing SMSs set by the calling admin. ...
mdm_direction_t
Defines direction of call and SMS events.