19 #ifndef LIBMDM_MDM_DEVICE_INVENTORY_H 20 #define LIBMDM_MDM_DEVICE_INVENTORY_H 22 #include "mdm_client_type.h" 82 #ifndef MDM_FOR_SOLIS_PROF 93 typedef enum mdm_sort_order_e {
126 typedef enum mdm_history_parameter_e {
194 typedef enum mdm_direction_e {
207 typedef enum mdm_roaming_status_e {
220 typedef enum mdm_history_event_type_e {
243 typedef struct mdm_history_query_s {
348 typedef struct mdm_history_info_s {
369 mdm_direction_t direction;
372 const char * slot_id;
376 const char * sim_msisdn;
377 mdm_roaming_status_t roaming_state;
431 #ifndef MDM_FOR_SOLIS_PROF 471 mdm_data_t *mdm_msim_get_imei(
const char *
id);
513 #ifndef MDM_FOR_SOLIS_PROF 551 mdm_data_t *mdm_msim_get_sim_serial_number(
const char *
id);
803 #ifndef MDM_FOR_SOLIS_PROF 879 #ifndef MDM_FOR_SOLIS_PROF 917 mdm_data_t *mdm_msim_get_imsi(
const char *
id);
956 #ifndef MDM_FOR_SOLIS_PROF 993 mdm_status_t mdm_msim_get_sim_roaming_status(
const char *
id);
2487 #ifndef MDM_FOR_SOLIS_PROF 2565 mdm_status_t mdm_msim_is_sms_capture_enabled(
const char *
id);
2606 mdm_data_t *mdm_msim_get_inbound_sms_captured(
const char *
id);
2647 mdm_data_t *mdm_msim_get_outbound_sms_captured(
const char *
id);
2688 mdm_result_t mdm_msim_clear_sms_captured(
const char *
id);
2767 mdm_status_t mdm_msim_is_call_capture_enabled(
const char *
id);
2809 mdm_data_t *mdm_msim_get_incoming_call_captured(
const char *
id);
2851 mdm_data_t *mdm_msim_get_outgoing_call_captured(
const char *
id);
2892 mdm_result_t mdm_msim_clear_call_captured(
const char *
id);
3081 #ifndef MDM_FOR_SOLIS_PROF 3116 mdm_data_t *mdm_msim_get_sim_country_iso(
const char *
id);
3221 mdm_network_service_type_t mdm_msim_get_network_type(
const char *
id);
3258 mdm_data_t *mdm_msim_get_subscriber_number(
const char *
id);
3303 mdm_data_t *mdm_msim_get_sim_operator_name(
const char *
id);
3342 mdm_data_t *mdm_msim_get_network_operator(
const char *
id);
3381 mdm_data_t *mdm_msim_get_network_operator_name(
const char *
id);
3417 mdm_data_t *mdm_msim_get_sim_operator(
const char *
id);
3449 mdm_data_t *mdm_msim_get_modem_firmware(
const char *simid);
3489 mdm_result_t mdm_msim_get_success_calls_count(
const char *
id,
int *count);
3528 mdm_result_t mdm_msim_get_missed_calls_count(
const char *
id,
int *count);
3567 mdm_result_t mdm_msim_get_rejected_calls_count(
const char *
id,
int *count);
3606 mdm_result_t mdm_msim_get_blocked_calls_count(
const char *
id,
int *count);
3647 mdm_result_t mdm_msim_reset_calls_count(
const char *simid);
3726 mdm_status_t mdm_msim_is_data_call_statistics_enabled(
const char *
id);
3766 mdm_result_t mdm_msim_get_bytes_sent_network(
const char *
id,
long long *bytes);
3805 mdm_result_t mdm_msim_get_bytes_received_network(
const char *
id,
long long *bytes);
4197 mdm_sort_order_t order);
4245 typedef struct mdm_history_purge_status_s {
4310 #endif // LIBMDM_MDM_DEVICE_INVENTORY_H mdm_history_parameter_t
Defines type of parameter used by mdm_history_add_parameter() and mdm_history_add_sort_parameter().
mdm_result_t mdm_get_bytes_sent_network(long long *bytes)
API to retrieve the amount of bytes sent through network connection.
mdm_result_t mdm_history_add_parameter(mdm_history_context_t *ctx, const mdm_history_query_t *query_parameter)
Allows to define query parameters to limit amount of data returned by mdm_history_get_next() or remov...
mdm_history_event_type_t
Defines type of history event.
mdm_data_t * mdm_get_device_platform(void)
API to get the platform of the device.
mdm_result_t mdm_get_bytes_sent_wifi(long long *bytes)
API to retrieve the amount of bytes sent through Wi-Fi connection.
mdm_result_t mdm_enable_call_capture(mdm_status_t status)
API to enable or disable capture of calling information on device.
History info. This structure describes event which happened in the past.
mdm_direction_t direction
mdm_result_t mdm_history_set_purge_interval(uint64_t interval)
Enables automatic removal of events older than specified time.
const char * destination_number
mdm_result_t mdm_history_context_free(mdm_history_context_t *ctx)
Frees history context.
uint64_t record_id
Internal record id.
mdm_history_event_type_t type
This structure is used to store GList.
mdm_direction_t direction
Event direction.
mdm_data_t * mdm_get_outbound_sms_captured(void)
API to retrieve the Out-bound SMSs captured on device.
const char * number
Remote number.
mdm_data_t * mdm_get_network_operator_name(void)
API to get the alphanumeric name of current registered network operator.
mdm_result_t mdm_get_missed_calls_count(int *count)
API to retrieve the number of missed calls on the device.
mdm_sim_status_t
SIM card status.
mdm_result_t mdm_reset_calls_count(void)
API to reset the counters related to calls count.
mdm_result_t mdm_get_available_ram_memory(int *memory)
API to get the value of available RAM.
time_t timestamp
Event timestamp.
int duration
Duration of call.
mdm_result_t mdm_get_blocked_calls_count(int *count)
API to retrieve the number of blocked calls on the device for a specific SIM card.
mdm_result_t mdm_clear_sms_captured(void)
API to clear the SMS logged on device.
mdm_data_t * mdm_get_sim_operator(void)
API to get the numeric name (MCC+MNC) of the SIM operator.
mdm_result_t mdm_get_bytes_received_wifi(long long *bytes)
API to retrieve the amount of bytes received from Wi-Fi connection.
mdm_status_t mdm_is_device_locked(void)
Checks if device is currently locked.
mdm_data_t * mdm_get_device_maker(void)
API to get the OEM of device.
mdm_status_t
MDM Policy status.
mdm_sim_status_t mdm_get_sim_state(void)
API to the status of the device SIM card.
uint64_t sms_record_purged_recently
const char * call_type
Textual description of call.
Status of automatic history purges.
mdm_status_t mdm_is_call_capture_enabled(void)
API to check whether call logging is enabled or disabled on device.
mdm_data_t * mdm_get_total_capacity_internal(void)
API to get the total capacity in bytes of the internal SD card and phone memory.
const char * iccid
SIM Card ICCID.
mdm_data_t * mdm_get_bluetooth_address(void)
API to check the hardware address of the local Bluetooth adapter.
mdm_data_t * mdm_get_available_capacity_external(void)
API to get the available capacity of the external SD card in bytes.
struct mdm_history_context_s mdm_history_context_t
Context used by extended call/SMS history APIs to handle requests.
mdm_result_t mdm_get_total_ram_memory(int *memory)
API to get total RAM memory on the device.
mdm_data_t * mdm_get_sim_serial_number(void)
API to get the ICCID of the SIM card in the device.
const char * sim_msisdn
SIM Card MSISDN.
mdm_status_t mdm_get_bluetooth_mode_status(void)
API to get the current state of the local Bluetooth adapter.
mdm_data_t * mdm_get_inbound_sms_captured(void)
API to retrieve the In-bound SMSs captured on device.
mdm_status_t mdm_is_bluetooth_supported(void)
API to check if Bluetooth capability is supported on the device or not.
mdm_status_t mdm_is_wifi_statistics_enabled(void)
API to determine if Wi-Fi statistics logging is enabled or disabled.
mdm_data_t * mdm_history_get_next(mdm_history_context_t *ctx, unsigned long window_size)
Gets the history records according to parameters specified in the history context.
mdm_data_t * mdm_get_subscriber_number(void)
API to get phone number associated with the device.
mdm_data_t * mdm_get_sim_country_iso(void)
API to get the standardized (ISO) country code of the SIM provider.
mdm_roaming_status_t roaming_status
mdm_result_t mdm_enable_wifi_statistics(mdm_status_t status)
API used to enable logging of Wi-Fi network statistics on the device.
mdm_result_t mdm_get_bytes_received_network(long long *bytes)
API to retrieve the amount of bytes received from network connection.
const char * body
Body of SMS.
mdm_roaming_status_t roaming_state
Roaming state.
mdm_result_t mdm_history_add_sort_parameter(mdm_history_context_t *ctx, mdm_history_parameter_t parameter, mdm_sort_order_t order)
Defines order of returned by mdm_history_get_next() data.
mdm_result_t mdm_enable_sms_capture(mdm_status_t status)
API to enable or disable SMS capture on device.
mdm_data_t * mdm_get_device_id(void)
API to get the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones...
mdm_result_t mdm_history_remove(mdm_history_context_t *ctx)
Removes records form internal call/SMS database.
mdm_data_t * mdm_get_network_operator(void)
API to get the numeric name (MCC+MNC) of the current registered network operator. ...
mdm_result_t mdm_get_success_calls_count(int *count)
Definition of a parameter used by mdm_history_add_parameter().
mdm_result_t
MDM API result.
mdm_data_t * mdm_get_modem_firmware(void)
API to get the model firmware version of the device.
mdm_data_t * mdm_get_device_serial_number(void)
API to get the device's serial number.
mdm_data_t * mdm_get_model_name(void)
API to get the model name of the device.
mdm_data_t * mdm_get_incoming_call_captured(void)
API to retrieve incoming call information captured on device.
mdm_status_t mdm_is_sms_capture_enabled(void)
API to check whether SMS capture is enabled or disabled on device.
mdm_data_t * mdm_get_available_capacity_internal(void)
API to get the available capacity of the internal phone memory in bytes.
mdm_data_t * mdm_get_sim_operator_name(void)
API to get the Service Provider Name (SPN) if SIM is available on the device.
mdm_status_t mdm_is_data_call_statistics_enabled(void)
API to determine whether cellular data network statistics logging is enabled.
mdm_result_t mdm_enable_data_call_statistics(mdm_status_t status)
API used to enable logging of cellular data network statistics on the device.
uint64_t sms_record_purged_total
mdm_data_t * mdm_get_total_capacity_external(void)
API to get the total capacity in bytes of the external SD card.
mdm_sort_order_t
Enum type to specify the sort order of the result from the extended calls/SMSes history APIs...
mdm_data_t * mdm_history_get_purge_status(void)
This API returns automatic purge status.
mdm_roaming_status_t
Defines roaming status.
mdm_data_t * mdm_get_wifi_mac_address(void)
API to get the Wi-Fi MAC address of the device.
mdm_result_t mdm_clear_call_captured(void)
API to clear call information logged on device.
mdm_result_t mdm_reset_data_usage(void)
API to reset the counters for received and sent data including the carrier network and WiFi data usag...
mdm_history_parameter_t parameter
mdm_data_t * mdm_get_outgoing_call_captured(void)
API to retrieve outgoing call information captured on device.
mdm_status_t mdm_is_device_secure(void)
API to get the device status(secure or not)
mdm_network_service_type_t
network status
mdm_history_event_type_t type
mdm_data_t * mdm_get_platform_version(void)
API to get the Platform Version of the device.
mdm_data_t * mdm_get_device_name(void)
API to get the name of device.
const char * slot_id
SIM slot id.
uint64_t call_record_purged_total
mdm_data_t * mdm_get_device_processor_type(void)
API to get the processor type of the device.
mdm_history_context_t * mdm_history_context_new(void)
Creates new history context.
uint64_t call_record_purged_recently
mdm_result_t mdm_get_rejected_calls_count(int *count)
API to retrieve the number of rejected calls on the device.
mdm_network_service_type_t mdm_get_network_type(void)
API to get the radio technology (Network Type) that is currently being used on the device...
mdm_direction_t
Defines direction of call and SMS events.