def METHOD_NAME(self, message):
    self.progressBar.value += 1
    # message can be long, do not display it, but still log it (might be useful for troubleshooting)
    logging.debug("DICOM send: " + message)
    slicer.app.processEvents()
    return not self.cancelRequested