In certain function, this enumeration seems not to be used as Flags, which is odd. Most of the time, it is used to differentiate contact target ID, form room target ID. This should instead the TplEntityType from TplEntity object as the target is mainly an entity. Also, in current search function, this flag is simply not used, which is also odd and need to be reviewed.
The main problem is that TplEventSearchType type mixes the notion of target type (is_room or not) with some search flags. The approach in this patch is to use TplEntity object (which contains the type) and create a new enumeration for type masking called TplEventTypeMask.
Fixed in 0.2.0 after Emilio (pochu) quick review.