Browse Source

- Fixed compilation warnings

- Started work on fastresume reject alerts
adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
a0e32fefd7
  1. 2
      TODO
  2. 3
      src/bittorrent.cpp
  3. 1
      src/bittorrent.h
  4. 4
      src/properties_imp.cpp

2
TODO

@ -47,8 +47,6 @@ @@ -47,8 +47,6 @@
- .ico support?
- display debug when fastresume data is rejected
- Download/Finished lists cleanup
- Use valgrind to detect memory leaks
- optimize includes for compilation speed
- Move transfer lists refreshers to threads
- Wait for some bug fixes in libtorrent :
- upload/download limit per torrent

3
src/bittorrent.cpp

@ -890,6 +890,9 @@ void bittorrent::readAlerts(){ @@ -890,6 +890,9 @@ void bittorrent::readAlerts(){
else if (peer_blocked_alert* p = dynamic_cast<peer_blocked_alert*>(a.get())){
emit peerBlocked(QString(p->ip.to_string().c_str()));
}
else if (fastresume_rejected_alert* p = dynamic_cast<fastresume_rejected_alert*>(a.get())){
emit fastResumeDataRejected(QString(p->handle.name().c_str()));
}
a = s->pop_alert();
}
}

1
src/bittorrent.h

@ -146,6 +146,7 @@ class bittorrent : public QObject{ @@ -146,6 +146,7 @@ class bittorrent : public QObject{
void allTorrentsFinishedChecking();
void peerBlocked(QString);
void downloadFromUrlFailure(QString url, QString reason);
void fastResumeDataRejected(QString name);
};

4
src/properties_imp.cpp

@ -287,7 +287,7 @@ void properties::deleteSelectedTrackers(){ @@ -287,7 +287,7 @@ void properties::deleteSelectedTrackers(){
}
void properties::riseSelectedTracker(){
unsigned int i;
unsigned int i = 0;
std::vector<announce_entry> trackers = h.trackers();
QList<QListWidgetItem *> selectedItems;
selectedItems = trackersURLS->selectedItems();
@ -318,7 +318,7 @@ void properties::riseSelectedTracker(){ @@ -318,7 +318,7 @@ void properties::riseSelectedTracker(){
}
void properties::lowerSelectedTracker(){
unsigned int i;
unsigned int i = 0;
std::vector<announce_entry> trackers = h.trackers();
QList<QListWidgetItem *> selectedItems;
selectedItems = trackersURLS->selectedItems();

Loading…
Cancel
Save