You can use QProcess to start external programs.
Vash5556 (20th February 2007)
AFAIK you could also implement a SCP socket in Qt... It may need some rather extended knowledge of networking in genral and SCP in particular but I'm pretty sure that it's possible. See the Simple chat example given with Qt. It shows how reimplementing a QAbstractSocket to make it work using a custom networking protocol.
Current Qt projects : QCodeEdit, RotiDeCode
The problem is SCP works over SSH, so you'd have to implement SSH first. And to implement SSH you'd have to implement SSLSo it's probably easier to call scp through QProcess
![]()
You may link your program to libssh and use the SFTP functions it includes. I'm using it in my program and it works nice. Feel free to ask me any questions. I'm in the libssh mailing list so you may ask there. If you need it, I can send you the class I use as a wrapper for libssh in my project, as long as your code is GPL.
Bookmarks