Details
-
Suggestion
-
Resolution: Unresolved
-
P5: Not important
-
None
-
4.6.2
-
None
Description
========================================================================
library usage scenario
========================================================================
using an adaption of the torrent example for my own code is not complicated, as my coreapplication shows [1].
in contrast:
the gui example is a very good and complete example of how to use the torrent subsystem but lacks easy copy'n'paste factor one is used to when programming qt.
see:
torrent-guiless.pro
main-nogui.cpp
coreapplication.cpp
coreapplication.h
which has a console frontend only. handy for integration into your project - can be copied to any project with just a few lines of code.
build with:
make distclean
qmake torrent-guiless
make
./torrent-guiless
IMPLEMENTED:
- foobar.torrent and directory can be supplied using the command line
- qsettings resume support
- i've changed the default upload/download rates already (see git log)
- i've also added support for compiling with QT_NO_CAST_FROM_BYTEARRAY and QT_NO_CAST_TO_ASCII
WISH: please create a QTorrent class (as you did with QHTTP) for library usage
WISH: please consider using this codebase as lightweight example.
LEGAL: you can use the same copyright for my code as it is used with the torrent example already.
[1] git@github.com:qknight/torrent.git
Attachments
Issue Links
- relates to
-
QTBUG-8491 Add support for more Network transports (SMB, SFTP)
-
- Open
-