MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:

VidaliaWindow List of all members.

Public Slots

virtual void setVisible (bool visible)

Public Member Functions

 MainWindow ()
 ~MainWindow ()

Protected Member Functions

virtual void customEvent (QEvent *event)

Private Types

 Unset
 Stopping
 Stopped
 Starting
 Started
 Authenticating
 Authenticated
 CircuitEstablished
enum  TorStatus {
  Unset, Stopping, Stopped, Starting,
  Started, Authenticating, Authenticated, CircuitEstablished
}

Private Slots

void showHelpDialog ()
void showHelpDialog (const QString &topic)
void start ()
void startFailed (QString errmsg)
void started ()
bool stop ()
void stopped (int errorCode, QProcess::ExitStatus exitStatus)
void connected ()
void connectFailed (QString errmsg)
void disconnect ()
void disconnected ()
void authenticated ()
void authenticationFailed (QString errmsg)
void enableNewIdentity ()
void newIdentity ()
void close ()
void running ()
void shutdown ()
void showAboutDialog ()
void showConfigDialog (ConfigDialog::Page page=ConfigDialog::General)
void showServerConfigDialog ()
void toggleShowOnStartup (bool checked)
void onSubprocessFinished (int exitCode, QProcess::ExitStatus exitStatus)
void onCheckForBrowser ()
void onBrowserFailed (QString errmsg)
void onIMFailed (QString errmsg)
void onProxyFailed (QString errmsg)

Private Member Functions

void createActions ()
void createTrayIcon ()
QMenu * createTrayMenu ()
void createMenuBar ()
TorStatus updateTorStatus (TorStatus status)
void launchBrowserFromDirectory ()
void startSubprocesses ()
void startProxy ()
QString toString (TorStatus status)
bool authenticate ()
QByteArray loadControlCookie (QString cookiePath=QString())
void circuitEstablished ()
void checkTorVersion ()
void dangerousTorVersion ()
void bootstrapStatusChanged (const BootstrapStatus &bs)
void setStartupProgressVisible (bool visible)
void setStartupProgress (int percentComplete, const QString &description)

Private Attributes

TorStatus _status
bool _isIntentionalExit
bool _delayedShutdownStarted
bool _isVidaliaRunningTor
MessageLog_messageLog
BandwidthGraph_bandwidthGraph
NetViewer_netViewer
ConfigDialog_configDialog
TorControl_torControl
HelperProcess_browserProcess
HelperProcess_imProcess
HelperProcess_proxyProcess
QString _controlPassword
bool _useSavedPassword
TrayIcon _trayIcon
QAction * _controlPanelAct
QAction * _startStopAct
QAction * _configAct
QAction * _aboutAct
QAction * _exitAct
QAction * _bandwidthAct
QAction * _messageAct
QAction * _helpAct
QAction * _networkAct
QAction * _newIdentityAct
Ui::MainWindow ui

Detailed Description

Definition at line 40 of file mainwindow.h.


Member Enumeration Documentation

enum MainWindow::TorStatus [private]

Enumerator:
Unset  Tor's status has not yet been set.
Stopping  Tor is in the process of shutting down.
Stopped  Tor is not running.
Starting  Tor is in the process of starting.
Started  Tor is currently running.
Authenticating  Vidalia is authenticating to Tor.
Authenticated  Vidalia has authenticated to Tor.
CircuitEstablished  Tor has built a circuit.

Definition at line 127 of file mainwindow.h.


Constructor & Destructor Documentation

MainWindow::MainWindow (  ) 

Default constructor

Definition at line 93 of file mainwindow.cpp.

References _bandwidthGraph, _browserProcess, _configDialog, _imProcess, _messageLog, _netViewer, _proxyProcess, _status, _torControl, _trayIcon, authenticated(), authenticationFailed(), TorEvents::ClientStatus, connected(), connectFailed(), createActions(), Vidalia::createShortcut(), createTrayIcon(), disconnected(), tc::error(), TorEvents::GeneralStatus, VidaliaWindow::helpRequested(), UPNPControl::instance(), onBrowserFailed(), onIMFailed(), onProxyFailed(), onSubprocessFinished(), running(), TorControl::setEvent(), TrayIcon::show(), showHelpDialog(), VidaliaSettings::showMainWindowAtStart(), shutdown(), started(), startFailed(), stopped(), Stopped, Vidalia::torControl(), ui, Unset, updateTorStatus(), and vApp.

MainWindow::~MainWindow (  ) 

Destructor.

Definition at line 179 of file mainwindow.cpp.

References _bandwidthGraph, _configDialog, _messageLog, _netViewer, _trayIcon, and TrayIcon::hide().


Member Function Documentation

bool MainWindow::authenticate (  )  [private]

Authenticates Vidalia to Tor's control port.

Definition at line 1156 of file mainwindow.cpp.

References _controlPassword, _isVidaliaRunningTor, _torControl, _useSavedPassword, TorControl::authenticate(), Authenticating, ProtocolInfo::authMethods(), VMessageBox::Browse, VMessageBox::Cancel, TorSettings::CookieAuth, ProtocolInfo::cookieAuthFile(), disconnect(), TorSettings::getAuthenticationMethod(), TorSettings::getControlPassword(), TorSettings::getDataDirectory(), ProtocolInfo::isEmpty(), loadControlCookie(), TorSettings::NullAuth, p(), TorSettings::PasswordAuth, TorControl::protocolInfo(), VMessageBox::question(), setStartupProgress(), STARTUP_PROGRESS_AUTHENTICATING, stop(), updateTorStatus(), vNotice, and vWarn.

Referenced by connected().

void MainWindow::authenticated (  )  [private, slot]

Called when Vidalia has successfully authenticated to Tor.

Definition at line 1230 of file mainwindow.cpp.

References _newIdentityAct, _torControl, Authenticated, TorControl::bootstrapStatus(), bootstrapStatusChanged(), checkTorVersion(), circuitEstablished(), TorControl::circuitEstablished(), TorControl::closeTorStdout(), ServerSettings::configurePortForwarding(), TorControl::getTorVersion(), VMessageBox::Ok, p(), TorControl::setEvents(), setStartupProgress(), STARTUP_PROGRESS_CIRCUITBUILD, ui, updateTorStatus(), and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::authenticationFailed ( QString  errmsg  )  [private, slot]

Called when Vidalia fails to authenticate to Tor. The failure reason is specified in errmsg.

Definition at line 1280 of file mainwindow.cpp.

References _controlPassword, _isVidaliaRunningTor, _torControl, _useSavedPassword, ConfigDialog::Advanced, VMessageBox::Cancel, disconnect(), VidaliaWindow::helpRequested(), TorControl::isRunning(), VMessageBox::Ok, p(), TorSettings::PasswordAuth, process_kill(), process_list(), showConfigDialog(), showHelpDialog(), VMessageBox::ShowSettings, start(), stop(), vWarn, and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::bootstrapStatusChanged ( const BootstrapStatus bs  )  [private]

Called when Tor's bootstrapping status changes. bse represents Tor's current estimate of its bootstrapping progress.

Definition at line 676 of file mainwindow.cpp.

References BootstrapStatus::BootstrappingDone, BootstrapStatus::ConnectingToDirMirror, BootstrapStatus::ConnectingToEntryGuard, tc::ConnectionDone, tc::ConnectionIoError, tc::ConnectionRefused, tc::ConnectionTimeout, BootstrapStatus::CreatingOneHopCircuit, BootstrapStatus::EstablishingCircuit, BootstrapStatus::HandshakingWithDirMirror, BootstrapStatus::HandshakingWithEntryGuard, tc::IdentityMismatch, BootstrapStatus::LoadingAuthorityCertificates, BootstrapStatus::LoadingDescriptors, BootstrapStatus::LoadingNetworkStatus, tc::MiscellaneousReason, tc::NoRouteToHost, BootstrapStatus::percentComplete(), BootstrapStatus::reason(), BootstrapStatus::recommendedAction(), BootstrapStatus::RecommendIgnore, BootstrapStatus::RequestingDescriptors, BootstrapStatus::RequestingNetworkStatus, tc::ResourceLimitReached, setStartupProgress(), BootstrapStatus::severity(), tc::SeverityWarn, STARTUP_PROGRESS_BOOTSTRAPPING, BootstrapStatus::status(), and tc::warn().

Referenced by authenticated(), and customEvent().

void MainWindow::checkTorVersion (  )  [private]

Checks the status of the current version of Tor to see if it's old, unrecommended, or obsolete.

Definition at line 1417 of file mainwindow.cpp.

References _torControl, dangerousTorVersion(), and TorControl::getInfo().

Referenced by authenticated().

void MainWindow::circuitEstablished (  )  [private]

Called when Tor has successfully established a circuit.

Definition at line 1406 of file mainwindow.cpp.

References CircuitEstablished, setStartupProgress(), startSubprocesses(), ui, and updateTorStatus().

Referenced by authenticated(), and customEvent().

void MainWindow::close (  )  [private, slot]

Called when the user exits Vidalia.

Definition at line 315 of file mainwindow.cpp.

References _torControl, TorControl::isConnected(), TorControl::isVidaliaRunningTor(), shutdown(), stop(), and stopped().

Referenced by createActions().

void MainWindow::connected (  )  [private, slot]

Called when the control socket has connected to Tor.

Definition at line 1124 of file mainwindow.cpp.

References authenticate().

Referenced by MainWindow().

void MainWindow::connectFailed ( QString  errmsg  )  [private, slot]

Called when the control connection fails.

Definition at line 1011 of file mainwindow.cpp.

References _torControl, TorControl::connect(), TorSettings::getControlAddress(), TorSettings::getControlPort(), VMessageBox::Help, VMessageBox::Ok, p(), VMessageBox::Retry, showHelpDialog(), TorControl::stop(), and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::createActions (  )  [private]

Create the actions on the tray menu or menubar

Definition at line 336 of file mainwindow.cpp.

References _aboutAct, _bandwidthAct, _bandwidthGraph, _configAct, _controlPanelAct, _exitAct, _helpAct, _messageAct, _messageLog, _netViewer, _networkAct, _newIdentityAct, _startStopAct, close(), IMG_ABOUT, IMG_BWGRAPH, IMG_CONFIG, IMG_CONTROL_PANEL, IMG_EXIT, IMG_HELP, IMG_IDENTITY, IMG_MESSAGELOG, IMG_NETWORK, IMG_START_TOR_16, newIdentity(), showAboutDialog(), showConfigDialog(), showHelpDialog(), VidaliaWindow::showWindow(), start(), and ui.

Referenced by MainWindow().

void MainWindow::createMenuBar (  )  [private]

Creates a default menubar on Mac

Definition at line 439 of file mainwindow.cpp.

References _aboutAct, _bandwidthAct, _configAct, _controlPanelAct, _exitAct, _helpAct, _messageAct, _networkAct, _newIdentityAct, and _startStopAct.

Referenced by createTrayIcon().

void MainWindow::createTrayIcon (  )  [private]

Creates a tray icon with a context menu and adds it to the system notification area. On Mac, we also set up an application menubar.

Definition at line 399 of file mainwindow.cpp.

References _trayIcon, createMenuBar(), createTrayMenu(), and TrayIcon::setContextMenu().

Referenced by MainWindow().

QMenu * MainWindow::createTrayMenu (  )  [private]

Create the tray popup menu and it's submenus

Definition at line 411 of file mainwindow.cpp.

References _aboutAct, _bandwidthAct, _configAct, _controlPanelAct, _exitAct, _helpAct, _messageAct, _networkAct, _newIdentityAct, and _startStopAct.

Referenced by createTrayIcon().

void MainWindow::customEvent ( QEvent *  event  )  [protected, virtual]

Catches and processes Tor client status events.

Definition at line 207 of file mainwindow.cpp.

References ClientStatusEvent::Bootstrap, bootstrapStatusChanged(), circuitEstablished(), ClientStatusEvent::CircuitEstablished, CustomEventType::ClientStatusEvent, dangerousTorVersion(), GeneralStatusEvent::DangerousTorVersion, CustomEventType::GeneralStatusEvent, DangerousVersionEvent::ObsoleteVersion, and DangerousVersionEvent::UnrecommendedVersion.

void MainWindow::dangerousTorVersion (  )  [private]

Called when Tor thinks its version is old or unrecommended, and displays a message notifying the user.

Definition at line 1432 of file mainwindow.cpp.

References VMessageBox::information(), VMessageBox::Ok, and p().

Referenced by checkTorVersion(), and customEvent().

void MainWindow::disconnect (  )  [private, slot]

Called when Vidalia wants to disconnect from a Tor it did not start.

Definition at line 1131 of file mainwindow.cpp.

References _torControl, and TorControl::disconnect().

Referenced by authenticate(), and authenticationFailed().

void MainWindow::disconnected (  )  [private, slot]

Called when the control socket has been disconnected.

Definition at line 1138 of file mainwindow.cpp.

References _isVidaliaRunningTor, _newIdentityAct, Stopped, ui, and updateTorStatus().

Referenced by MainWindow().

void MainWindow::enableNewIdentity (  )  [private, slot]

Re-enables the 'New Identity' button after a delay from the previous time 'New Identity' was used.

Definition at line 1531 of file mainwindow.cpp.

References _newIdentityAct, _torControl, TorControl::isConnected(), and ui.

Referenced by newIdentity().

void MainWindow::launchBrowserFromDirectory (  )  [private]

Start a web browser when given the directory containing the executable and profile

Definition at line 487 of file mainwindow.cpp.

References _browserProcess, copy_dir(), VidaliaSettings::getBrowserDirectory(), VidaliaSettings::getBrowserExecutable(), and HelperProcess::start().

Referenced by startSubprocesses().

QByteArray MainWindow::loadControlCookie ( QString  cookiePath = QString()  )  [private]

Searches for and attempts to load the control authentication cookie. This assumes the cookie is named 'control_auth_cookie'. If cookiePath is empty, this method will search some default locations depending on the current platform. cookiePath can point to either a cookie file or a directory containing the cookie file.

Definition at line 1362 of file mainwindow.cpp.

References expand_filename(), TorSettings::getDataDirectory(), vDebug, vInfo, and vWarn.

Referenced by authenticate().

void MainWindow::newIdentity (  )  [private, slot]

Called when the user selects the "New Identity" action from the menu.

Definition at line 1497 of file mainwindow.cpp.

References _newIdentityAct, _torControl, _trayIcon, enableNewIdentity(), VMessageBox::information(), TrayIcon::Information, MIN_NEWIDENTITY_INTERVAL, TorSignal::NewNym, VMessageBox::Ok, TrayIcon::showBalloonMessage(), TorControl::signal(), TrayIcon::supportsBalloonMessages(), ui, and VMessageBox::warning().

Referenced by createActions().

void MainWindow::onBrowserFailed ( QString  errmsg  )  [private, slot]

Called web the web browser failed to start

Definition at line 628 of file mainwindow.cpp.

References VMessageBox::Ok, and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::onCheckForBrowser (  )  [private, slot]

Called periodically to check if the browser is running. If it is not, exit Vidalia cleanly

Definition at line 593 of file mainwindow.cpp.

References VidaliaSettings::getBrowserExecutable(), i(), shutdown(), and win32_process_list().

Referenced by onSubprocessFinished().

void MainWindow::onIMFailed ( QString  errmsg  )  [private, slot]

Called web the IM client failed to start

Definition at line 641 of file mainwindow.cpp.

References VMessageBox::Ok, and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::onProxyFailed ( QString  errmsg  )  [private, slot]

Called when the proxy server fails to start

Definition at line 663 of file mainwindow.cpp.

References VMessageBox::Ok, and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::onSubprocessFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
) [private, slot]

Called when the web browser or IM client have stopped

Definition at line 561 of file mainwindow.cpp.

References _browserProcess, _imProcess, VidaliaSettings::getBrowserDirectory(), VidaliaSettings::getBrowserExecutable(), VidaliaSettings::getIMExecutable(), HelperProcess::isDone(), onCheckForBrowser(), and shutdown().

Referenced by MainWindow().

void MainWindow::running (  )  [private, slot]

Called when the application has started and the main event loop is running.

Definition at line 242 of file mainwindow.cpp.

References _useSavedPassword, VidaliaSettings::runProxyAtStart(), VidaliaSettings::runTorAtStart(), start(), and startProxy().

Referenced by MainWindow().

void MainWindow::setStartupProgress ( int  percentComplete,
const QString &  description 
) [private]

Sets the progress bar completion value to progressValue and sets the status text to description.

Definition at line 880 of file mainwindow.cpp.

References _trayIcon, TrayIcon::setToolTip(), and ui.

Referenced by authenticate(), authenticated(), bootstrapStatusChanged(), circuitEstablished(), started(), and updateTorStatus().

void MainWindow::setStartupProgressVisible ( bool  visible  )  [private]

Sets the visibility of the startup status description and progress bar to visible.

Definition at line 858 of file mainwindow.cpp.

References ui.

Referenced by updateTorStatus().

void MainWindow::setVisible ( bool  visible  )  [virtual, slot]

Shows or hides this window.

Reimplemented from VidaliaWindow.

Definition at line 189 of file mainwindow.cpp.

References TrayIcon::isTrayIconSupported(), VidaliaWindow::setVisible(), and ui.

void MainWindow::showAboutDialog (  )  [private, slot]

Creates and displays Vidalia's About dialog.

Definition at line 1454 of file mainwindow.cpp.

References AboutDialog::showWindow().

Referenced by createActions().

void MainWindow::showConfigDialog ( ConfigDialog::Page  page = ConfigDialog::General  )  [private, slot]

Creates and displays the Configuration dialog with the current page set to page.

Definition at line 1483 of file mainwindow.cpp.

References _configDialog, and ConfigDialog::showWindow().

Referenced by authenticationFailed(), createActions(), showServerConfigDialog(), and startFailed().

void MainWindow::showHelpDialog ( const QString &  topic  )  [private, slot]

Called when a child window requests the given help topic.

Definition at line 1472 of file mainwindow.cpp.

References HelpBrowser::showWindow().

void MainWindow::showHelpDialog (  )  [private, slot]

Displays the help browser and displays the most recently viewed help topic.

Definition at line 1465 of file mainwindow.cpp.

Referenced by authenticationFailed(), connectFailed(), createActions(), MainWindow(), startFailed(), stop(), and stopped().

void MainWindow::showServerConfigDialog (  )  [private, slot]

Displays the Configuration dialog, set to the Server page.

Definition at line 1490 of file mainwindow.cpp.

References ConfigDialog::Server, and showConfigDialog().

void MainWindow::shutdown (  )  [private, slot]

Terminate the Tor process if it is being run under Vidalia, disconnect all TorControl signals, and exit Vidalia.

Definition at line 266 of file mainwindow.cpp.

References _browserProcess, _imProcess, _proxyProcess, _torControl, ServerSettings::cleanupPortForwarding(), VidaliaSettings::getBrowserDirectory(), VidaliaSettings::getBrowserExecutable(), TorControl::isVidaliaRunningTor(), TorControl::stop(), and win32_end_process_by_filename().

Referenced by close(), MainWindow(), onCheckForBrowser(), and onSubprocessFinished().

void MainWindow::start (  )  [private, slot]

Called when the user selects "Start" from the menu.

Definition at line 891 of file mainwindow.cpp.

References _controlPassword, _isIntentionalExit, _torControl, _useSavedPassword, TorSettings::CookieAuth, expand_filename(), TorSettings::getAuthenticationMethod(), TorSettings::getControlAddress(), TorSettings::getControlPassword(), TorSettings::getControlPort(), TorSettings::getDataDirectory(), TorSettings::getExecutable(), TorSettings::getTorrc(), TorSettings::hashPassword(), net_test_connect(), TorSettings::PasswordAuth, TorSettings::randomPassword(), TorControl::start(), started(), Starting, touch_file(), updateTorStatus(), and TorSettings::useRandomPassword().

Referenced by authenticationFailed(), createActions(), running(), and updateTorStatus().

void MainWindow::started (  )  [private, slot]

Called when the Tor process has successfully started.

Definition at line 989 of file mainwindow.cpp.

References _delayedShutdownStarted, _isIntentionalExit, _isVidaliaRunningTor, _torControl, TorControl::connect(), TorSettings::getControlAddress(), TorSettings::getControlPort(), TorControl::isVidaliaRunningTor(), setStartupProgress(), Started, STARTUP_PROGRESS_CONNECTING, and updateTorStatus().

Referenced by MainWindow(), and start().

void MainWindow::startFailed ( QString  errmsg  )  [private, slot]

Called when the Tor process fails to start.

Definition at line 958 of file mainwindow.cpp.

References VMessageBox::Cancel, VMessageBox::Help, showConfigDialog(), showHelpDialog(), VMessageBox::ShowSettings, Stopped, updateTorStatus(), and VMessageBox::warning().

Referenced by MainWindow().

void MainWindow::startProxy (  )  [private]

Starts the proxy server, if appropriately configured

Definition at line 653 of file mainwindow.cpp.

References _proxyProcess, VidaliaSettings::getProxyExecutable(), VidaliaSettings::getProxyExecutableArguments(), and HelperProcess::start().

Referenced by running().

void MainWindow::startSubprocesses (  )  [private]

Starts the web browser, if appropriately configured

Definition at line 536 of file mainwindow.cpp.

References _browserProcess, _imProcess, VidaliaSettings::getBrowserDirectory(), VidaliaSettings::getBrowserExecutable(), VidaliaSettings::getIMExecutable(), launchBrowserFromDirectory(), and HelperProcess::start().

Referenced by circuitEstablished().

bool MainWindow::stop (  )  [private, slot]

Called when the user selects "Stop" form the menu.

Definition at line 1036 of file mainwindow.cpp.

References _delayedShutdownStarted, _isIntentionalExit, _torControl, VMessageBox::Cancel, VMessageBox::Help, ServerSettings::isServerEnabled(), VMessageBox::No, VMessageBox::Ok, p(), VMessageBox::question(), showHelpDialog(), TorSignal::Shutdown, TorControl::signal(), TorControl::stop(), Stopping, updateTorStatus(), VMessageBox::warning(), and VMessageBox::Yes.

Referenced by authenticate(), authenticationFailed(), close(), and updateTorStatus().

void MainWindow::stopped ( int  errorCode,
QProcess::ExitStatus  exitStatus 
) [private, slot]

Called when the Tor process has exited, either expectedly or not.

Definition at line 1095 of file mainwindow.cpp.

References _isIntentionalExit, _messageLog, VMessageBox::Help, VMessageBox::Ok, showHelpDialog(), VMessageBox::ShowLog, VidaliaWindow::showWindow(), Stopped, updateTorStatus(), and VMessageBox::warning().

Referenced by close(), and MainWindow().

void MainWindow::toggleShowOnStartup ( bool  checked  )  [private, slot]

Called when the "show on startup" checkbox is toggled.

Definition at line 849 of file mainwindow.cpp.

References VidaliaSettings::setShowMainWindowAtStart().

QString MainWindow::toString ( TorStatus  status  )  [private]

Converts a TorStatus enum value to a string for debug logging purposes.

Definition at line 1541 of file mainwindow.cpp.

References Authenticated, Authenticating, CircuitEstablished, Started, Starting, Stopped, Stopping, and Unset.

Referenced by updateTorStatus().

MainWindow::TorStatus MainWindow::updateTorStatus ( TorStatus  status  )  [private]

Updates the UI to reflect Tor's current status. Returns the previously set TorStatus value.

Definition at line 759 of file mainwindow.cpp.

References _delayedShutdownStarted, _startStopAct, _status, _trayIcon, CircuitEstablished, IMG_START_TOR_16, IMG_START_TOR_48, IMG_STOP_TOR_16, IMG_STOP_TOR_48, IMG_TOR_RUNNING, IMG_TOR_RUNNING_48, IMG_TOR_STARTING, IMG_TOR_STARTING_48, IMG_TOR_STOPPED, IMG_TOR_STOPPED_48, IMG_TOR_STOPPING, IMG_TOR_STOPPING_48, TrayIcon::setIcon(), setStartupProgress(), setStartupProgressVisible(), TrayIcon::setToolTip(), start(), Started, Starting, STARTUP_PROGRESS_STARTING, stop(), Stopped, Stopping, toString(), ui, and vNotice.

Referenced by authenticate(), authenticated(), circuitEstablished(), disconnected(), MainWindow(), start(), started(), startFailed(), stop(), and stopped().


Member Data Documentation

QAction* MainWindow::_aboutAct [private]

Definition at line 220 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

QAction* MainWindow::_bandwidthAct [private]

Definition at line 222 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

BandwidthGraph* MainWindow::_bandwidthGraph [private]

A BandwidthGraph object which handles monitoring Tor bandwidth usage

Definition at line 194 of file mainwindow.h.

Referenced by createActions(), MainWindow(), and ~MainWindow().

HelperProcess* MainWindow::_browserProcess [private]

A HelperProcess object that manages the web browser

Definition at line 202 of file mainwindow.h.

Referenced by launchBrowserFromDirectory(), MainWindow(), onSubprocessFinished(), shutdown(), and startSubprocesses().

QAction* MainWindow::_configAct [private]

Definition at line 219 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

ConfigDialog* MainWindow::_configDialog [private]

A ConfigDialog object which lets the user configure Tor and Vidalia

Definition at line 198 of file mainwindow.h.

Referenced by MainWindow(), showConfigDialog(), and ~MainWindow().

QAction* MainWindow::_controlPanelAct [private]

Defines the actions for the tray menu

Definition at line 217 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

QString MainWindow::_controlPassword [private]

Remembers the control password between when we start Tor with a hash of the password and when we need to provide the password itself.

Definition at line 209 of file mainwindow.h.

Referenced by authenticate(), authenticationFailed(), and start().

bool MainWindow::_delayedShutdownStarted [private]

Tracks whether we started a delayed server shutdown.

Definition at line 188 of file mainwindow.h.

Referenced by started(), stop(), and updateTorStatus().

QAction* MainWindow::_exitAct [private]

Definition at line 221 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

QAction* MainWindow::_helpAct [private]

Definition at line 224 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

HelperProcess* MainWindow::_imProcess [private]

A HelperProcess object that manages the IM client

Definition at line 204 of file mainwindow.h.

Referenced by MainWindow(), onSubprocessFinished(), shutdown(), and startSubprocesses().

bool MainWindow::_isIntentionalExit [private]

Used to determine if the Tor process exiting was intentional or not

Definition at line 186 of file mainwindow.h.

Referenced by start(), started(), stop(), and stopped().

bool MainWindow::_isVidaliaRunningTor [private]

Set to true if Vidalia started its own Tor process.

Definition at line 190 of file mainwindow.h.

Referenced by authenticate(), authenticationFailed(), disconnected(), and started().

QAction* MainWindow::_messageAct [private]

Definition at line 223 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

MessageLog* MainWindow::_messageLog [private]

A MessageLog object which handles logging Tor messages

Definition at line 192 of file mainwindow.h.

Referenced by createActions(), MainWindow(), stopped(), and ~MainWindow().

NetViewer* MainWindow::_netViewer [private]

A NetViewer object which displays the Tor network graphically

Definition at line 196 of file mainwindow.h.

Referenced by createActions(), MainWindow(), and ~MainWindow().

QAction* MainWindow::_networkAct [private]

Definition at line 225 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), and createTrayMenu().

QAction* MainWindow::_newIdentityAct [private]

Definition at line 226 of file mainwindow.h.

Referenced by authenticated(), createActions(), createMenuBar(), createTrayMenu(), disconnected(), enableNewIdentity(), and newIdentity().

HelperProcess* MainWindow::_proxyProcess [private]

A HelperProcess object that manages the proxy server

Definition at line 206 of file mainwindow.h.

Referenced by MainWindow(), shutdown(), and startProxy().

QAction* MainWindow::_startStopAct [private]

Definition at line 218 of file mainwindow.h.

Referenced by createActions(), createMenuBar(), createTrayMenu(), and updateTorStatus().

TorStatus MainWindow::_status [private]

The current status of Tor.

Definition at line 184 of file mainwindow.h.

Referenced by MainWindow(), and updateTorStatus().

TorControl* MainWindow::_torControl [private]

A TorControl object that handles communication with Tor

Definition at line 200 of file mainwindow.h.

Referenced by authenticate(), authenticated(), authenticationFailed(), checkTorVersion(), close(), connectFailed(), disconnect(), enableNewIdentity(), MainWindow(), newIdentity(), shutdown(), start(), started(), and stop().

TrayIcon MainWindow::_trayIcon [private]

The Vidalia icon that sits in the tray.

Definition at line 214 of file mainwindow.h.

Referenced by createTrayIcon(), MainWindow(), newIdentity(), setStartupProgress(), updateTorStatus(), and ~MainWindow().

bool MainWindow::_useSavedPassword [private]

Set to true if we should use the control password saved in TorSettings when authenticating to Tor.

Definition at line 212 of file mainwindow.h.

Referenced by authenticate(), authenticationFailed(), running(), and start().

Ui::MainWindow MainWindow::ui [private]

Qt Designer generated object.

Definition at line 228 of file mainwindow.h.

Referenced by authenticated(), circuitEstablished(), createActions(), disconnected(), enableNewIdentity(), MainWindow(), newIdentity(), setStartupProgress(), setStartupProgressVisible(), setVisible(), and updateTorStatus().


The documentation for this class was generated from the following files:
Generated on Tue Jul 7 17:00:57 2009 for Vidalia by  doxygen 1.4.7