def _on_got_application_info(_, result): '''Marshal the error and result into a tuple.''' try: info = application_listing_from_app_info( EosCompanionAppService.finish_load_application_info( result)) except GLib.Error as error: _load_app_info_callback(error, None) return _load_app_info_callback(None, info)
def _on_got_application_info(_, result): '''Callback function that gets called when we get the app info.''' try: app_info = EosCompanionAppService.finish_load_application_info(result) except GLib.Error as error: callback(error, None) return content_db_conn.query(application_listing=application_listing_from_app_info(app_info), query={ 'tags-match-all': ['EknSetObject'] }, cancellable=cancellable, callback=_on_queried_sets)
def _on_received_application_info(_, result): '''Called when we receive requested application info.''' try: listing = application_listing_from_app_info( EosCompanionAppService.finish_load_application_info(result)) except Exception as error: done_callback(error, None) return done_callback(None, [{ 'tags': _GLOBAL_SET_INDICATOR_TAG, 'title': listing.display_name, 'contentType': 'application/x-ekncontent-set', 'thumbnail': format_app_icon_uri(version, listing.icon, device_uuid), 'id': '', 'global': True }])