[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [vidalia/alpha] Relay newConsensus signal in TorControl



commit a7c9775f81edfa294bbed549afbd37d5262941bd
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
Date:   Sat Mar 17 14:17:15 2012 -0300

    Relay newConsensus signal in TorControl
---
 src/torcontrol/TorControl.cpp |    1 +
 src/torcontrol/TorControl.h   |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/torcontrol/TorControl.cpp b/src/torcontrol/TorControl.cpp
index 6f08e26..1dc523e 100644
--- a/src/torcontrol/TorControl.cpp
+++ b/src/torcontrol/TorControl.cpp
@@ -42,6 +42,7 @@ TorControl::TorControl(ControlMethod::Method method)
   RELAY_SIGNAL(_eventHandler, SIGNAL(circuitStatusChanged(Circuit)));
   RELAY_SIGNAL(_eventHandler, SIGNAL(streamStatusChanged(Stream)));
   RELAY_SIGNAL(_eventHandler, SIGNAL(newDescriptors(QStringList)));
+  RELAY_SIGNAL(_eventHandler, SIGNAL(newConsensus()));
   RELAY_SIGNAL(_eventHandler, SIGNAL(logMessage(tc::Severity, QString)));
   RELAY_SIGNAL(_eventHandler, SIGNAL(dangerousPort(quint16, bool)));
   RELAY_SIGNAL(_eventHandler, SIGNAL(socksError(tc::SocksError, QString)));
diff --git a/src/torcontrol/TorControl.h b/src/torcontrol/TorControl.h
index 6432c83..fabc3d9 100644
--- a/src/torcontrol/TorControl.h
+++ b/src/torcontrol/TorControl.h
@@ -289,6 +289,9 @@ signals:
    */
   void newDescriptors(const QStringList &ids);
 
+  /** Emitted when Tor has received a new consensus. */
+  void newConsensus();
+
   /** Indicates Tor has been able to successfully establish one or more
    * circuits.
    */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits