2009-08-17 03:00:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QPoint>
|
2011-05-23 17:45:25 -04:00
|
|
|
#include <retroshare/rsturtle.h>
|
2009-08-17 03:00:34 -04:00
|
|
|
#include "ui_TurtleRouterDialog.h"
|
2010-02-14 04:06:37 -05:00
|
|
|
#include "RsAutoUpdatePage.h"
|
2009-08-17 03:00:34 -04:00
|
|
|
|
2011-05-23 17:45:25 -04:00
|
|
|
|
2010-02-14 04:06:37 -05:00
|
|
|
class TurtleRouterDialog: public RsAutoUpdatePage, public Ui::TurtleRouterDialogForm
|
2009-08-17 03:00:34 -04:00
|
|
|
{
|
|
|
|
public:
|
2010-02-14 04:06:37 -05:00
|
|
|
TurtleRouterDialog(QWidget *parent = NULL) ;
|
2011-05-30 19:06:22 -04:00
|
|
|
~TurtleRouterDialog();
|
|
|
|
|
2011-05-23 17:45:25 -04:00
|
|
|
// Cache for peer names.
|
|
|
|
static QString getPeerName(const std::string& peer_id) ;
|
|
|
|
|
2009-08-17 03:00:34 -04:00
|
|
|
private:
|
2011-05-23 17:45:25 -04:00
|
|
|
void updateTunnelRequests( const std::vector<std::vector<std::basic_string<char> > >&,
|
|
|
|
const std::vector<std::vector<std::basic_string<char> > >&,
|
|
|
|
const std::vector<TurtleRequestDisplayInfo >&,
|
|
|
|
const std::vector<TurtleRequestDisplayInfo >&) ;
|
2011-05-30 19:06:22 -04:00
|
|
|
|
|
|
|
void processSettings(bool bLoad);
|
|
|
|
bool m_bProcessSettings;
|
2011-05-23 17:45:25 -04:00
|
|
|
|
2010-02-14 04:06:37 -05:00
|
|
|
virtual void updateDisplay() ;
|
2010-02-20 17:51:24 -05:00
|
|
|
QTreeWidgetItem *findParentHashItem(const std::string& hash) ;
|
2010-02-14 04:06:37 -05:00
|
|
|
|
2010-02-20 17:51:24 -05:00
|
|
|
std::map<std::string,QTreeWidgetItem*> top_level_hashes ;
|
|
|
|
QTreeWidgetItem *top_level_unknown_hashes ;
|
|
|
|
QTreeWidgetItem *top_level_s_requests ;
|
|
|
|
QTreeWidgetItem *top_level_t_requests ;
|
2011-05-23 17:45:25 -04:00
|
|
|
|
2009-08-17 03:00:34 -04:00
|
|
|
} ;
|
2011-05-23 17:45:25 -04:00
|
|
|
|
2011-05-26 18:11:06 -04:00
|
|
|
|
2011-05-23 17:45:25 -04:00
|
|
|
|