'Reload the data file information and show them on the main dialog. The
information here includes both metadata and hosts module info from the
data file.
:param refresh: A flag indicating whether the information on main
dialog needs to be reloaded or not. The value could be `0` or `1`.
refresh  operation
0        Do NOT reload
1        Reload
:type refresh: int'

def refresh_info(self, refresh=0):

    if (refresh and (RetrieveData.conn is not None)):
        RetrieveData.clear()
    try:
        RetrieveData.unpack()
        RetrieveData.connect_db()
        self.set_func_list(refresh)
        self.refresh_func_list()
        self.set_info()
    except (BadZipfile, IOError, OSError):
        self.warning_incorrect_datafile()
