def checkExitCodes(self, exitCode, exitStatus):
    self.endingTime = datetime.datetime.now()
    successful = False
    if ((exitStatus == 0) and (exitCode == 0)):
        message = 'Quanty has finished successfully in '
        delta = self.runningTime
        (hours, reminder) = divmod(delta, 3600)
        (minutes, seconds) = divmod(reminder, 60)
        seconds = round(seconds, 2)
        if (hours > 0):
            message += '{} hours {} minutes and {} seconds.'.format(hours, minutes, seconds)
        elif (minutes > 0):
            message += '{} minutes and {} seconds.'.format(minutes, seconds)
        else:
            message += '{} seconds.'.format(seconds)
        logger.info(message)
        successful = True
    elif ((exitStatus == 0) and (exitCode == 1)):
        message = 'Quanty has finished unsuccessfully. Check the logging window for more details.'
        logger.info(message)
    elif (exitStatus == 1):
        message = 'Quanty was stopped.'
        logger.info(message)
    self.successful.emit(successful)
def checkExitCodes(self, exitCode, exitStatus):
    self.endingTime = datetime.datetime.now()
    successful = False
    if ((exitStatus == 0) and (exitCode == 0)):
        message = 'Quanty has finished successfully in '
        delta = self.runningTime
        (hours, reminder) = divmod(delta, 3600)
        (minutes, seconds) = divmod(reminder, 60)
        seconds = round(seconds, 2)
        if (hours > 0):
            message += '{} hours {} minutes and {} seconds.'.format(hours, minutes, seconds)
        elif (minutes > 0):
            message += '{} minutes and {} seconds.'.format(minutes, seconds)
        else:
            message += '{} seconds.'.format(seconds)
        logger.info(message)
        successful = True
    elif ((exitStatus == 0) and (exitCode == 1)):
        message = 'Quanty has finished unsuccessfully. Check the logging window for more details.'
        logger.info(message)
    elif (exitStatus == 1):
        message = 'Quanty was stopped.'
        logger.info(message)
    self.successful.emit(successful)