- Fixed compilation warnings

- Started work on fastresume reject alerts
This commit is contained in:
Christophe Dumez 2007-07-24 07:13:40 +00:00
parent e606d04098
commit a0e32fefd7
4 changed files with 6 additions and 4 deletions

2
TODO
View file

@ -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

View file

@ -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();
}
}

View file

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

View file

@ -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(){
}
void properties::lowerSelectedTracker(){
unsigned int i;
unsigned int i = 0;
std::vector<announce_entry> trackers = h.trackers();
QList<QListWidgetItem *> selectedItems;
selectedItems = trackersURLS->selectedItems();