[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r1312: Add a no-arg stopped() signal, emitted when the Tor process (trunk/src/control)
Author: edmanm
Date: 2006-10-08 01:01:12 -0400 (Sun, 08 Oct 2006)
New Revision: 1312
Modified:
trunk/src/control/torcontrol.cpp
trunk/src/control/torcontrol.h
Log:
Add a no-arg stopped() signal, emitted when the Tor process stops.
Modified: trunk/src/control/torcontrol.cpp
===================================================================
--- trunk/src/control/torcontrol.cpp 2006-10-08 03:59:59 UTC (rev 1311)
+++ trunk/src/control/torcontrol.cpp 2006-10-08 05:01:12 UTC (rev 1312)
@@ -165,6 +165,7 @@
disconnect();
}
+ emit stopped();
emit stopped(exitCode, exitStatus);
}
@@ -289,6 +290,7 @@
if (!isVidaliaRunningTor()) {
/* If we're not running our own Tor, then we interpret the closing of
* our control connection to mean that Tor stopped. */
+ emit stopped();
emit stopped(0, QProcess::NormalExit);
}
}
Modified: trunk/src/control/torcontrol.h
===================================================================
--- trunk/src/control/torcontrol.h 2006-10-08 03:59:59 UTC (rev 1311)
+++ trunk/src/control/torcontrol.h 2006-10-08 05:01:12 UTC (rev 1312)
@@ -137,6 +137,8 @@
void startFailed(QString errmsg);
/** Emitted when the Tor process has stopped */
void stopped(int exitCode, QProcess::ExitStatus exitStatus);
+ /** Emitted when the Tor process has stopped. */
+ void stopped();
/** Emitted when the controller has connected to Tor */
void connected();
/** Emitted when the controller failed to connect to Tor. */