Msg_Mapi_FilterRule.h File ReferenceDetailed DescriptionDefines the filter related structures.MSG_FILTER_S and MSG_FILTER_LIST_S define the criteria for session's interested incoming messages. MSG_FILTER_S represents the basic filter unit, with a pair of filter type and filter value. A filter is satisfied when the filter value meets the requirement of specific filter type. MSG_FILTER_LIST_S is composed of a series of various MSG_FILTER_S. A filter list is satisfied when one of filters in the list satisfied. The first filter in the list has the highest priority, the last the lowest. Framework will check the filter list from the first to the last. Once an incoming message satisfies one filter in the list, framwork would stop checking and return. The framework sends the satisfying messages to filter-list associated applications. If the intercept is set true, the lower priority session would not receive the messages. See MsgPlgFilterCheckRules in Messaging Framework API [2].
Typedef Documentation
Represents the filter Id. A filter Id represents a unique filter type. The values for this type SHOULD be in _MSG_FILTER_ID_E or other extended filter Ids.
Enumeration Type Documentation
Represents the values of filter id. This enum is used as the value of MSG_FILTER_ID_T. For example: MSG_FILTER_S filter; filter.filterId = MSG_FILTER_BY_MSG_TYPE; filter.filterValue = (unsigned char*)malloc(sizeof(MSG_MESSAGE_TYPE_S)); MSG_MESSAGE_TYPE_S* msgType = (MSG_MESSAGE_TYPE_S*)filter.filterValue; msgType->mainType = MSG_MESSAGE_TYPE_SMS; msgType->subType = MSG_MESSAGE_TYPE_SMS_TEXT; //set the filter ... ... //the session will only receive SMS.
Generated on Mon Mar 31 01:01:00 2008 by
1.5.4
|
||||||||||||||||||||||||||||||||||||||