'Set button status while operations to retrieve hosts data file
finished.
:param error: A flag indicating if error occurs while retrieving hosts
data file from the server.
:type error: int'

def set_fetch_finish_btns(self, error=0):

    if error:
        self.ui.ButtonApply.setEnabled(False)
        self.ui.ButtonANSI.setEnabled(False)
        self.ui.ButtonUTF.setEnabled(False)
    else:
        self.ui.ButtonApply.setEnabled(True)
        self.ui.ButtonANSI.setEnabled(True)
        self.ui.ButtonUTF.setEnabled(True)
    self.ui.Functionlist.setEnabled(True)
    self.ui.SelectMirror.setEnabled(True)
    self.ui.ButtonCheck.setEnabled(True)
    self.ui.ButtonUpdate.setEnabled(True)
    self.ui.ButtonExit.setEnabled(True)
