As a bonus the behaviour is now homogeneous between C++ API and JSON API
Fix a bunch of compiler warning
RsEvents implementation is now safer
mHandlerMaps size is known at compile time, so use an std::array instead
of vector
../../../trunk/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp:
1104:9: warning: enumeration value 'DownloadTab' not handled in switch
[-Wswitch]
switch(page)
^
../../../trunk/libretroshare/src/services/autoproxy/
rsautoproxymonitor.cc:263:24: warning: pragma diagnostic pop could not
pop, no matching push [-Wunknown-pragmas]
^
../../../trunk/libretroshare/src/services/autoproxy/
rsautoproxymonitor.cc:295:24: warning: pragma diagnostic pop could not
pop, no matching push [-Wunknown-pragmas]
^
./../../trunk/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp:
723: warning: pragma diagnostic pop could not pop, no matching push [-
Wunknown-pragmas]
^
In file included from ../../../trunk/retroshare-gui/src/gui/FileTransfer/
TransfersDialog.cpp:31:
../../../trunk/retroshare-gui/src/gui/FileTransfer/
FileTransferInfoWidget.h:31:1: warning: class 'FileInfo' was previously
declared as a struct [-Wmismatched-tags]
class FileInfo ;
^
../../../trunk/libretroshare/src/retroshare/rstypes.h:188:8: note:
previous use is here
struct FileInfo : RsSerializable
^
../../../trunk/retroshare-gui/src/gui/FileTransfer/
FileTransferInfoWidget.h:31:1: note: did you mean struct here?
class FileInfo ;
^~~~~
struct
struct
In file included from ../../../trunk/retroshare-gui/src/gui/FileTransfer/
TransfersDialog.cpp:29:
../../../trunk/retroshare-gui/src/gui/FileTransfer/DetailsDialog.h:28:1:
warning: class 'FileChunksInfo' was previously declared as a struct [-
Wmismatched-tags]
class FileChunksInfo ;
^
../../../trunk/libretroshare/src/retroshare/rstypes.h:398:8: note:
previous use is here
struct FileChunksInfo : RsSerializable
^
../../../trunk/retroshare-gui/src/gui/FileTransfer/DetailsDialog.h:28:1:
note: did you mean struct here?
class FileChunksInfo ;
^~~~~
struct