Ejemplo n.º 1
0
bool MaemoSshDeployer::runInternal()
{
    createConnection();
    if (!m_connection->start())
        return false;
    if (stopRequested())
        return true;

    connect(m_connection.data(), SIGNAL(fileCopied(QString)),
            this, SIGNAL(fileCopied(QString)));
    return m_connection->transferFiles(m_deploySpecs);
}
Ejemplo n.º 2
0
void Copy::slotPostFinished(QNetworkReply *reply)
{
 //   NetworkManager::slotPostFinished(reply);

    if(sourcesData.isEmpty())
    {
        emit fileCopied(sourceData, true);
        updatePanelContent(true);
    }
    else
    {
        emit fileCopied(sourceData);
        file(sourcesData.takeFirst(), destFolder);
    }
}