class _GenericNotificationIterator(object._Object, _NotificationIterator):
- @property
- def component(self):
- comp_ptr = native_bt.notification_iterator_get_component(self._ptr)
- assert(comp_ptr)
- return bt2.component._create_generic_component_from_ptr(comp_ptr)
-
def _get_notif(self):
notif_ptr = native_bt.notification_iterator_get_notification(self._ptr)
utils._handle_ptr(notif_ptr, "cannot get notification iterator object's current notification object")
return self._get_notif()
+class _PrivateConnectionNotificationIterator(_GenericNotificationIterator):
+ @property
+ def component(self):
+ comp_ptr = native_bt.private_connection_notification_iterator_get_component(self._ptr)
+ assert(comp_ptr)
+ return bt2.component._create_generic_component_from_ptr(comp_ptr)
+
+
class _UserNotificationIterator(_NotificationIterator):
def __new__(cls, ptr):
# User iterator objects are always created by the native side,