2009-08-17 07:00:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
2011-05-23 21:45:25 +00:00
|
|
|
#include <retroshare/rsturtle.h>
|
2009-08-17 07:00:34 +00:00
|
|
|
#include "ui_TurtleRouterDialog.h"
|
2010-02-14 09:06:37 +00:00
|
|
|
#include "RsAutoUpdatePage.h"
|
2009-08-17 07:00:34 +00:00
|
|
|
|
2011-05-23 21:45:25 +00:00
|
|
|
|
2010-02-14 09:06:37 +00:00
|
|
|
class TurtleRouterDialog: public RsAutoUpdatePage, public Ui::TurtleRouterDialogForm
|
2009-08-17 07:00:34 +00:00
|
|
|
{
|
2012-02-05 21:05:11 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2009-08-17 07:00:34 +00:00
|
|
|
public:
|
2010-02-14 09:06:37 +00:00
|
|
|
TurtleRouterDialog(QWidget *parent = NULL) ;
|
2011-05-30 23:06:22 +00:00
|
|
|
~TurtleRouterDialog();
|
|
|
|
|
2011-05-23 21:45:25 +00:00
|
|
|
// Cache for peer names.
|
|
|
|
static QString getPeerName(const std::string& peer_id) ;
|
|
|
|
|
2009-08-17 07:00:34 +00:00
|
|
|
private:
|
2011-05-23 21:45:25 +00: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 23:06:22 +00:00
|
|
|
|
|
|
|
void processSettings(bool bLoad);
|
|
|
|
bool m_bProcessSettings;
|
2011-05-23 21:45:25 +00:00
|
|
|
|
2010-02-14 09:06:37 +00:00
|
|
|
virtual void updateDisplay() ;
|
2010-02-20 22:51:24 +00:00
|
|
|
QTreeWidgetItem *findParentHashItem(const std::string& hash) ;
|
2010-02-14 09:06:37 +00:00
|
|
|
|
2010-02-20 22:51:24 +00: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 21:45:25 +00:00
|
|
|
|
2009-08-17 07:00:34 +00:00
|
|
|
} ;
|