Exemplo n.º 1
0
 void getStreamUrlOutput(int exitCode)
 {
     if (exitCode == 0) {
         QByteArray out = streamProcess.readAllStandardOutput();
         QList<QByteArray> outputList = out.split('\n');
         qDebug() << "Called the C++ slot and got following url:" << outputList[0];
         streamUrl = outputList[0];
         streamUrlChanged(streamUrl);
     }
     else {
         printError();
     }
 }
Exemplo n.º 2
0
void Transfer::setStreamUrl(const QUrl &url) {
    if (url != streamUrl()) {
        m_streamUrl = url;
        emit streamUrlChanged();
    }
}