예제 #1
0
void UpdateChecker::requestFinished(QByteArray data) {
        UpdateCheckerStreamReader reader;
        reader.read(data);
        m_needUpdate = reader.needUpdate();
        m_remoteVersion = reader.remoteVersion();
        if (m_needUpdate) emit newVersion(m_remoteVersion);
}
예제 #2
0
void UpdateChecker::requestFinished(const QByteArray &data) {
    UpdateCheckerStreamReader reader;
    reader.read(data);
    m_needUpdate = reader.needUpdate();
    m_remoteVersion = reader.remoteVersion();
    if (m_needUpdate && !m_remoteVersion.isEmpty()) emit newVersion(m_remoteVersion);
}