Changeset View
Changeset View
Standalone View
Standalone View
src/qt/clientmodel.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <qt/clientmodel.h> | #include <qt/clientmodel.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <checkpoints.h> | #include <checkpoints.h> | ||||
#include <clientversion.h> | #include <clientversion.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <interfaces/handler.h> | #include <interfaces/handler.h> | ||||
#include <interfaces/node.h> | #include <interfaces/node.h> | ||||
#include <net.h> | #include <net.h> | ||||
#include <netbase.h> | |||||
#include <qt/bantablemodel.h> | #include <qt/bantablemodel.h> | ||||
#include <qt/guiconstants.h> | #include <qt/guiconstants.h> | ||||
#include <qt/guiutil.h> | #include <qt/guiutil.h> | ||||
#include <qt/peertablemodel.h> | #include <qt/peertablemodel.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
▲ Show 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | void ClientModel::unsubscribeFromCoreSignals() { | ||||
m_handler_show_progress->disconnect(); | m_handler_show_progress->disconnect(); | ||||
m_handler_notify_num_connections_changed->disconnect(); | m_handler_notify_num_connections_changed->disconnect(); | ||||
m_handler_notify_network_active_changed->disconnect(); | m_handler_notify_network_active_changed->disconnect(); | ||||
m_handler_notify_alert_changed->disconnect(); | m_handler_notify_alert_changed->disconnect(); | ||||
m_handler_banned_list_changed->disconnect(); | m_handler_banned_list_changed->disconnect(); | ||||
m_handler_notify_block_tip->disconnect(); | m_handler_notify_block_tip->disconnect(); | ||||
m_handler_notify_header_tip->disconnect(); | m_handler_notify_header_tip->disconnect(); | ||||
} | } | ||||
bool ClientModel::getProxyInfo(std::string &ip_port) const { | |||||
proxyType ipv4, ipv6; | |||||
if (m_node.getProxy((Network)1, ipv4) && | |||||
m_node.getProxy((Network)2, ipv6)) { | |||||
ip_port = ipv4.proxy.ToStringIPPort(); | |||||
return true; | |||||
} | |||||
return false; | |||||
} |