'Make a new hosts file for current system.
:param mode: Operation mode for making hosts file. The valid value
could be one of `system`, `ansi`, and `utf-8`.
Default by `system`.
:type mode: str'

def make_hosts(self, mode='system'):

    self.set_make_start_btns()
    self.set_make_message(unicode(_translate('Util', 'Building    hosts    file...', None)), 1)
    RetrieveData.disconnect_db()
    self.make_mode = mode
    self.set_config_bytes(mode)
    thread = QSubMakeHosts(self)
    thread.info_trigger.connect(self.set_make_progress)
    thread.fina_trigger.connect(self.finish_make)
    thread.move_trigger.connect(self.move_hosts)
    thread.start()
