Vidalia  0.3.1
Classes | Enumerations | Functions
tc Namespace Reference

Classes

class  DebugMessage
 

Enumerations

enum  ConnectionStatusReason {
  UnrecognizedReason, MiscellaneousReason, IdentityMismatch, ConnectionDone,
  ConnectionRefused, ConnectionReset, ConnectionTimeout, ConnectionIoError,
  NoRouteToHost, ResourceLimitReached
}
 
enum  Severity {
  UnrecognizedSeverity = 0, DebugSeverity = (1u<<4), InfoSeverity = (1u<<3), NoticeSeverity = (1u<<2),
  WarnSeverity = (1u<<1), ErrorSeverity = (1u<<0)
}
 
enum  SocksError { DangerousSocksTypeError, UnknownSocksProtocolError, BadSocksHostnameError }
 
enum  TorVersionStatus { ObsoleteTorVersion, UnrecommendedTorVersion, NewTorVersion }
 

Functions

DebugMessage debug (const QString &fmt)
 
DebugMessage warn (const QString &fmt)
 
DebugMessage error (const QString &fmt)
 
DebugMessage fatal (const QString &fmt)
 
ConnectionStatusReason connectionStatusReasonFromString (const QString &str)
 
Severity severityFromString (const QString &str)
 

Enumeration Type Documentation

§ ConnectionStatusReason

Enumerator
UnrecognizedReason 
MiscellaneousReason 
IdentityMismatch 
ConnectionDone 
ConnectionRefused 
ConnectionReset 
ConnectionTimeout 
ConnectionIoError 
NoRouteToHost 
ResourceLimitReached 

Definition at line 56 of file tcglobal.h.

§ Severity

Severity values used in log message and status events.

Enumerator
UnrecognizedSeverity 

An unrecognized severity value.

DebugSeverity 

Hyper-verbose events used for debugging.

InfoSeverity 

Verbose events that can occur frequently.

NoticeSeverity 

A not-so-bad event.

WarnSeverity 

An important, but non-fatal event.

ErrorSeverity 

A critical event.

Definition at line 69 of file tcglobal.h.

§ SocksError

SOCKS error types used by Tor status event notifications. These are emitted in the TorControl::socksError() signal.

Enumerator
DangerousSocksTypeError 

The SOCKS type uses only IP addresses.

UnknownSocksProtocolError 

Unknown SOCKS protocol type.

BadSocksHostnameError 

Application provided an invalid hostname.

Definition at line 79 of file tcglobal.h.

§ TorVersionStatus

Reasons that use of the user's current Tor version would be discouraged.

Enumerator
ObsoleteTorVersion 
UnrecommendedTorVersion 
NewTorVersion 

Definition at line 86 of file tcglobal.h.

Function Documentation

§ connectionStatusReasonFromString()

ConnectionStatusReason tc::connectionStatusReasonFromString ( const QString &  str)

§ debug()

DebugMessage tc::debug ( const QString &  fmt)

§ error()

DebugMessage tc::error ( const QString &  fmt)

§ fatal()

DebugMessage tc::fatal ( const QString &  fmt)

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

Definition at line 48 of file tcglobal.cpp.

§ severityFromString()

Severity tc::severityFromString ( const QString &  str)

§ warn()

DebugMessage tc::warn ( const QString &  fmt)

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

Definition at line 32 of file tcglobal.cpp.

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