'Set the information of connection status to the current server
selected.'

def set_conn_status(self, status):

    if (status == (-1)):
        self.set_label_color(self.ui.labelConnStat, 'BLACK')
        self.set_label_text(self.ui.labelConnStat, unicode(_translate('Util', 'Checking...', None)))
    elif (status in [0, 1]):
        if status:
            (color, stat) = ('GREEN', unicode(_translate('Util', '[OK]', None)))
        else:
            (color, stat) = ('RED', unicode(_translate('Util', '[Failed]', None)))
        self.set_label_color(self.ui.labelConnStat, color)
        self.set_label_text(self.ui.labelConnStat, stat)
