Knox Tizen Wearable SDK
mdm_history_query_t Struct Reference

Definition of a parameter used by mdm_history_add_parameter(). More...

#include <device_inventory.h>

Data Fields

mdm_history_parameter_t parameter
 
int64_t date
 
uint64_t record_id
 
mdm_direction_t direction
 
const char * destination_number
 
const char * sim_id
 
mdm_roaming_status_t roaming_status
 
mdm_history_event_type_t type
 

Detailed Description

Definition of a parameter used by mdm_history_add_parameter().

This structure is used to add limits on data returned by mdm_history_get_next(). You can add many parameters to limit returned data. For example you may limit data by time of an event or by record id. You may add more then one parameter. They final limitation is logical 'AND' of all added parameters.

If the same parameter is added twice, previous setting will be overwritten.

Since (Knox_wearable):
1.1.0
Since (Tizen):
2.4.0.4
See also
mdm_history_add_parameter, mdm_history_parameter_t, mdm_direction_t, mdm_roaming_status_t

Definition at line 243 of file device_inventory.h.

Field Documentation

int64_t mdm_history_query_t::date

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_START_DATE or MDM_HISTORY_PARAMETER_EVENT_END_DATE.

Contains time and date as Unix timestamp (seconds from the epoch).

Definition at line 261 of file device_inventory.h.

const char* mdm_history_query_t::destination_number

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_DESTINATION_NUMBER.

Contains destination phone number as POSIX extended regular expression as defined http://pubs.opengroup.org/onlinepubs/009696899/basedefs/xbd_chap09.html. Note that '+' (plus sign) has to be escaped as it has special meaning in POSIX regular expressions.

Example:

  • '.*' matches zero or more characters,
    • "\+48601.*" matches "+48601", "+486012", "+48601222333".
  • '.' matches any single character,
    • "\+48601." matches "+486012" and does not match neither "+48601" nor "+48601222333". Matches records where phone number matches specified pattern.

Definition at line 303 of file device_inventory.h.

mdm_direction_t mdm_history_query_t::direction

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_DIRECTION.

Contains definition of connection direction. Matches records with the same direction.

Definition at line 284 of file device_inventory.h.

mdm_history_parameter_t mdm_history_query_t::parameter

Defines what limitation will be set. Depending on value of this field one of other field is used.

Definition at line 248 of file device_inventory.h.

uint64_t mdm_history_query_t::record_id

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_START_RECORD_ID or MDM_HISTORY_PARAMETER_EVENT_END_RECORD_ID.

Contains record id. Record id identifies record in unique way and is internal representation.

Definition at line 275 of file device_inventory.h.

mdm_roaming_status_t mdm_history_query_t::roaming_status

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_ROAMING_STATUS.

Contains status of roaming. MDM_ROAMING_STATUS_ACTIVE when device is working in roaming mode, otherwise MDM_ROAMING_STATUS_NOT_ACTIVE. Matches records with roaming status equal to specified one.

Definition at line 322 of file device_inventory.h.

const char* mdm_history_query_t::sim_id

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_SLOT_ID.

Contains name which identifies slot on which event has occurred. Matches records with the same slot id.

Definition at line 312 of file device_inventory.h.

mdm_history_event_type_t mdm_history_query_t::type

Valid when mdm_history_query_t::parameter is set to MDM_HISTORY_PARAMETER_EVENT_TYPE.

Contains type of an events you want to obtain. Can be one of mdm_history_event_type_t value. Matches records with type equal to specified one.

Definition at line 331 of file device_inventory.h.


The documentation for this struct was generated from the following file: