def get_table_entry_names(table):
    """Get the entry names listed in a table.

    :param table: A QTableWidget object, with each row representing one food dictionary or log entry.

    :returns: A list of three lists: all entry names in the table, the checked entry names only, and the unchecked
        entry names only.
    """
    all_entry_names = []
    checked_entry_names = []
    unchecked_entry_names = []
    for row_num in range(table.rowCount()):
        entry_name = table.item(row_num, 0).text()
        all_entry_names.append(entry_name)
        if table.item(row_num, 0).checkState():
            checked_entry_names.append(entry_name)
        else:
            unchecked_entry_names.append(entry_name)
    return [all_entry_names, checked_entry_names, unchecked_entry_names]