Commit 5b91610e authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Added a commented out snippet of code

parent d37a2259
......@@ -95,6 +95,21 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
//TODO implement on android side
//if (np.get<int>("id") != m_id) return;
//This is the previous code, to access sftp server using KIO. Now we are
//using the external binary sshfs, and accessing it as a local filesystem.
* KUrl url;
* url.setProtocol("sftp");
* url.setHost(np.get<QString>("ip"));
* url.setPort(np.get<QString>("port").toInt());
* url.setUser(np.get<QString>("user"));
* url.setPass(np.get<QString>("password"));
* url.setPath(np.get<QString>("path"));
* new KRun(url, 0);
* Q_EMIT mounted();
m_proc.reset(new KProcess(this));
......@@ -104,7 +119,7 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
const QString mpoint = m_sftp->mountPoint();
const QString program = "sshfs";
const QStringList arguments = QStringList()
<< QString("%1@%2:%3")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment