Refactor the transfer stuff
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 28 Dec 2013 21:26:27 +0000 (22:26 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 1 Jan 2014 22:15:15 +0000 (23:15 +0100)
commit0d7b511c8510d7fd05d3a704114e34ff37f7a995
tree13d376b90cb391de03c115a72b369514a038cd9d
parent7768b765b21279eadef1400c6c614c63a3db8ed8
Refactor the transfer stuff

Well, sometimes refactorings come sooner than usual. While thinking
about the next steps, I decided to handle the actual transfer logic
inside Transfer rather than TransferManager - now that we can have
selective (peer-based) sync calls as well, that makes more sense than
outsourcing that to TransferManager. Thus, it now makes lots of sense
to have ClientTransfer and CoreTransfer, as the logic will be quite
different.

I also took the opportunity to clean up the accessors and make them
safer; you can now get a non-const CoreTransfer pointer, for example,
but still only a const ClientTransfer pointer.

Also, some useful signals have been added.
16 files changed:
src/client/CMakeLists.txt
src/client/clienttransfer.cpp [new file with mode: 0644]
src/client/clienttransfer.h [new file with mode: 0644]
src/client/clienttransfermanager.cpp
src/client/clienttransfermanager.h
src/common/transfer.cpp
src/common/transfer.h
src/common/transfermanager.cpp
src/common/transfermanager.h
src/core/CMakeLists.txt
src/core/coresessioneventprocessor.cpp
src/core/coretransfer.cpp [new file with mode: 0644]
src/core/coretransfer.h [new file with mode: 0644]
src/core/coretransfermanager.cpp
src/core/coretransfermanager.h
src/qtui/mainwin.cpp