Vidalia
0.2.21
|
#include <NetworkPage.h>
Public Member Functions | |
NetworkPage (QWidget *parent=0) | |
bool | save (QString &errmsg) |
void | load () |
bool | apply (QString &errmsg) |
void | revert () |
bool | changedSinceLastApply () |
virtual void | retranslateUi () |
![]() | |
ConfigPage (QWidget *parent=0, const QString title=QString()) | |
QString | title () const |
Private Slots | |
void | addBridge () |
void | removeBridge () |
void | copySelectedBridgesToClipboard () |
void | bridgeContextMenuRequested (const QPoint &pos) |
void | bridgeSelectionChanged () |
void | onLinkActivated (const QString &url) |
void | proxyTypeChanged (int selection) |
Private Attributes | |
Ui::NetworkPage | ui |
Additional Inherited Members | |
![]() | |
void | helpRequested (const QString &topic) |
Definition at line 26 of file NetworkPage.h.
NetworkPage::NetworkPage | ( | QWidget * | parent = 0 | ) |
Default Constructor
Constructor
Definition at line 35 of file NetworkPage.cpp.
References addBridge(), bridgeContextMenuRequested(), bridgeSelectionChanged(), copySelectedBridgesToClipboard(), onLinkActivated(), proxyTypeChanged(), removeBridge(), ui, and vApp.
|
privateslot |
Adds a bridge to the bridge list box.
Definition at line 114 of file NetworkPage.cpp.
References ui.
Referenced by NetworkPage().
|
virtual |
Applies the network configuration settings to Tor. Returns true if the settings were applied successfully. Otherwise, errmsg is set and false is returned.
Applies the network configuration settings to Tor. Returns true if the * settings were applied successfully. Otherwise, errmsg is set and * false is returned.
Reimplemented from ConfigPage.
Definition at line 82 of file NetworkPage.cpp.
References NetworkSettings::apply(), and Vidalia::torControl().
|
privateslot |
Called when the user right-clicks on a bridge and displays a context menu.
Definition at line 154 of file NetworkPage.cpp.
References copySelectedBridgesToClipboard(), IMG_COPY, and ui.
Referenced by NetworkPage().
|
privateslot |
Called when the user changes which bridges they have selected.
Definition at line 173 of file NetworkPage.cpp.
References ui.
Referenced by NetworkPage().
|
virtual |
Returns true if the user has changed their server settings since the last time they were applied to Tor.
Returns true if the user has changed their server settings since the * last time they were applied to Tor.
Reimplemented from ConfigPage.
Definition at line 90 of file NetworkPage.cpp.
References AbstractTorSettings::changedSinceLastApply(), and Vidalia::torControl().
|
privateslot |
Copies all selected bridges to the clipboard.
Definition at line 136 of file NetworkPage.cpp.
Referenced by bridgeContextMenuRequested(), and NetworkPage().
|
virtual |
Loads the settings for this page
Loads previously saved settings
Implements ConfigPage.
Definition at line 269 of file NetworkPage.cpp.
References NetworkSettings::getBridgeList(), NetworkSettings::getFascistFirewall(), NetworkSettings::getProxyAddress(), NetworkSettings::getProxyPassword(), NetworkSettings::getProxyType(), NetworkSettings::getProxyUsername(), NetworkSettings::getReachablePorts(), NetworkSettings::getUseBridges(), NetworkSettings::HttpHttpsProxy, NetworkSettings::NoProxy, NetworkSettings::Socks4Proxy, NetworkSettings::Socks5Proxy, Vidalia::torControl(), ui, and vApp.
|
privateslot |
Called when a link in a label is clicked. url is the target of the clicked link.
Definition at line 107 of file NetworkPage.cpp.
References ConfigPage::helpRequested().
Referenced by NetworkPage().
|
privateslot |
Disable proxy username and password fields when the user wants to use a SOCKS 4 proxy.
Definition at line 322 of file NetworkPage.cpp.
References NetworkSettings::Socks4Proxy, and ui.
Referenced by NetworkPage().
|
privateslot |
Removes one or more selected bridges from the bridge list box.
Definition at line 129 of file NetworkPage.cpp.
References ui.
Referenced by NetworkPage().
|
virtual |
Called when the user changes the UI translation.
Reimplemented from ConfigPage.
Definition at line 73 of file NetworkPage.cpp.
References ui.
|
virtual |
Reverts the server configuration settings to their values at the last time they were successfully applied to Tor.
Reverts the server configuration settings to their values at the last * time they were successfully applied to Tor.
Reimplemented from ConfigPage.
Definition at line 98 of file NetworkPage.cpp.
References AbstractTorSettings::revert(), and Vidalia::torControl().
|
virtual |
Saves the changes on this page
Saves changes made to settings on the Firewall settings page.
Implements ConfigPage.
Definition at line 182 of file NetworkPage.cpp.
References i(), NetworkSettings::NoProxy, NetworkSettings::ProxyTypeMax, NetworkSettings::ProxyTypeMin, NetworkSettings::setBridgeList(), NetworkSettings::setFascistFirewall(), NetworkSettings::setProxyAddress(), NetworkSettings::setProxyPassword(), NetworkSettings::setProxyType(), NetworkSettings::setProxyUsername(), NetworkSettings::setReachablePorts(), NetworkSettings::setUseBridges(), Vidalia::torControl(), and ui.
|
private |
Qt Designer generated object
Definition at line 74 of file NetworkPage.h.
Referenced by addBridge(), bridgeContextMenuRequested(), bridgeSelectionChanged(), copySelectedBridgesToClipboard(), load(), NetworkPage(), proxyTypeChanged(), removeBridge(), retranslateUi(), and save().