tc Namespace Reference


Classes

class  DebugMessage

Enumerations

enum  ConnectionStatusReason {
  UnrecognizedReason, MiscellaneousReason, IdentityMismatch, ConnectionDone,
  ConnectionRefused, ConnectionReset, ConnectionTimeout, ConnectionIoError,
  NoRouteToHost, ResourceLimitReached
}
enum  Severity {
  UnrecognizedSeverity, SeverityDebug, SeverityInfo, SeverityNotice,
  SeverityWarn, SeverityError
}

Functions

DebugMessage debug (const QString &fmt)
DebugMessage warn (const QString &fmt)
DebugMessage error (const QString &fmt)
DebugMessage fatal (const QString &fmt)
ConnectionStatusReason toConnectionStatusReason (const QString &str)
Severity toSeverity (const QString &str)


Enumeration Type Documentation

enum tc::ConnectionStatusReason

Enumerator:
UnrecognizedReason 
MiscellaneousReason 
IdentityMismatch 
ConnectionDone 
ConnectionRefused 
ConnectionReset 
ConnectionTimeout 
ConnectionIoError 
NoRouteToHost 
ResourceLimitReached 

Definition at line 57 of file tcglobal.h.

enum tc::Severity

Severity values used in log message and status events.

Enumerator:
UnrecognizedSeverity  An unrecognized severity value.
SeverityDebug  Hyper-verbose events used for debugging.
SeverityInfo  Verbose events that can occur frequently.
SeverityNotice  A not-so-bad event.
SeverityWarn  An important, but non-fatal event.
SeverityError  A critical event.

Definition at line 70 of file tcglobal.h.


Function Documentation

DebugMessage tc::debug ( const QString &  fmt  ) 

Creates a new message using fmt and a severity level of QtDebugMsg.

Definition at line 25 of file tcglobal.cpp.

Referenced by AddressMap::add(), ControlConnection::connect(), TorService::install(), ControlConnection::onError(), ControlConnection::onReadyRead(), TorService::remove(), ControlConnection::run(), ControlSocket::sendCommand(), ControlConnection::setStatus(), TorService::start(), TorProcess::start(), TorService::stop(), and TorProcess::stop().

DebugMessage tc::warn ( const QString &  fmt  ) 

Creates a new message using fmt and a severity level of QtWarningMsg.

Definition at line 33 of file tcglobal.cpp.

Referenced by MainWindow::bootstrapStatusChanged(), ControlConnection::cancelConnect(), Circuit::Circuit(), and ControlConnection::onError().

DebugMessage tc::error ( const QString &  fmt  ) 

Creates a new message using fmt and a severity level of QtCriticalMsg.

Definition at line 41 of file tcglobal.cpp.

Referenced by ControlConnection::connect(), HelperProcess::HelperProcess(), TorService::install(), main(), MainWindow::MainWindow(), TorProcess::onError(), ControlConnection::onError(), ControlConnection::onReadyRead(), TorSslSocket::onSslErrors(), print_usage_and_exit(), TorService::remove(), ControlConnection::run(), ControlConnection::send(), TorService::start(), TorService::stop(), TorProcess::stop(), string_parse_arguments(), string_parse_keyvals(), TorProcess::TorProcess(), TorSocket::TorSocket(), and TorSslSocket::TorSslSocket().

DebugMessage tc::fatal ( const QString &  fmt  ) 

Creates a new message using fmt and a severity level of QtFatalMsg.

Definition at line 49 of file tcglobal.cpp.

ConnectionStatusReason tc::toConnectionStatusReason ( const QString &  str  ) 

Converts str to a ConnectionStatusReason enum value.

Definition at line 56 of file tcglobal.cpp.

References ConnectionDone, ConnectionIoError, ConnectionRefused, ConnectionTimeout, IdentityMismatch, MiscellaneousReason, NoRouteToHost, ResourceLimitReached, and UnrecognizedReason.

Referenced by TorControl::bootstrapStatus(), and TorEvents::dispatchClientStatusEvent().

Severity tc::toSeverity ( const QString &  str  ) 

Converts str to a Severity enum value.

Definition at line 83 of file tcglobal.cpp.

References SeverityDebug, SeverityError, SeverityInfo, SeverityNotice, SeverityWarn, and UnrecognizedSeverity.

Referenced by TorControl::bootstrapStatus(), and TorEvents::handleStatusEvent().


Generated on Tue Jul 7 16:58:12 2009 for Vidalia by  doxygen 1.4.7