mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-16 01:54:52 -04:00
- Added a parent page widget (class RsAutoUpdatePage) to handle auto-update. The page updates using a timer, only wh
en visible, and each time it gets showed. I already made some RS pages derive from this page. - Modified and renamed the taskGraphPainterWidget to display info about currently selected file transfers. For know, it only shows file chunks info, but we should use it to display additional info about the transfer. Warning: in its current state, only fake chunk info is displayed. - Suppressed p3files.h, because it is not used. Remains to do (in order): - Implement a chunk map class in ft/ to properly manage which chunks should be downloaded - Display correct chunk info by requesting the transfer's chunk map - Add check-sum verification of chunks - allow RS to import a partially downloaded file by force re-checking chunks - Add chunk map exchange from file source peer id to file destination peer id. - Manage chunks from different peers. - Allow search (turtle search) for partially downloaded files git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1832 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
36c2a726fa
commit
506f14eb2f
28 changed files with 368 additions and 1215 deletions
|
@ -31,7 +31,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "mainpage.h"
|
||||
#include "taskGraphPainterWidget.h"
|
||||
#include "RsAutoUpdatePage.h"
|
||||
|
||||
#include "ui_TransfersDialog.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@ class DLListDelegate;
|
|||
class ULListDelegate;
|
||||
class QStandardItemModel;
|
||||
|
||||
class TransfersDialog : public MainPage
|
||||
class TransfersDialog : public RsAutoUpdatePage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -51,6 +51,7 @@ class TransfersDialog : public MainPage
|
|||
~TransfersDialog();
|
||||
|
||||
virtual void keyPressEvent(QKeyEvent *) ;
|
||||
virtual void updateDisplay() ; // derived from RsAutoUpdateWidget
|
||||
|
||||
public slots:
|
||||
void insertTransfers();
|
||||
|
@ -117,12 +118,6 @@ class TransfersDialog : public MainPage
|
|||
int _sortColDwl, _sortColUpl;
|
||||
Qt::SortOrder _sortOrderDwl, _sortOrderUpl;
|
||||
|
||||
void createTaskGraphPainterWidget();
|
||||
/*QHBoxLayout *taskGraphDetailLayout;
|
||||
QScrollArea *taskGraphWidget;*/
|
||||
TaskGraphPainterWidget *taskGraphPainterWidget;
|
||||
|
||||
|
||||
/** Create the actions on the tray menu or menubar */
|
||||
void createActions();
|
||||
|
||||
|
@ -171,6 +166,7 @@ class TransfersDialog : public MainPage
|
|||
|
||||
void editItem(int row, int column, QVariant data);
|
||||
void updateProgress(int value);
|
||||
void showFileDetails() ;
|
||||
|
||||
double getProgress(int row, QStandardItemModel *model);
|
||||
double getSpeed(int row, QStandardItemModel *model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue