Changeset 75
- Timestamp:
- 01/12/06 18:52:38 (3 years ago)
- Location:
- trunk/src/control
- Files:
-
- 2 modified
-
torcontrol.cpp (modified) (3 diffs)
-
torcontrol.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/control/torcontrol.cpp
r60 r75 40 40 * started, otherwise returns false. */ 41 41 bool 42 TorControl::start Tor(QString *errmsg)42 TorControl::start(QString *errmsg) 43 43 { 44 44 VidaliaSettings settings; … … 50 50 /** Stop the Tor process. */ 51 51 void 52 TorControl::stop Tor()52 TorControl::stop() 53 53 { 54 54 _torProcess.stop(); … … 57 57 /** Detect if the Tor process is running. */ 58 58 bool 59 TorControl:: torIsRunning()59 TorControl::isRunning() 60 60 { 61 61 return (_torProcess.pid() != 0); -
trunk/src/control/torcontrol.h
r60 r75 25 25 #define _TORCONTROL_H 26 26 27 #include <QObject> 27 28 #include <QHash> 28 29 … … 30 31 #include "torprocess.h" 31 32 32 class TorControl 33 class TorControl : public QObject 33 34 { 35 Q_OBJECT 36 34 37 private: 35 38 ControlConnection _controlConn; 36 39 TorProcess _torProcess; 37 40 38 41 public: 39 42 /** Default constructor */ … … 44 47 45 48 /** Start the Tor process */ 46 bool start Tor(QString *errmsg = 0);49 bool start(QString *errmsg = 0); 47 50 48 51 /** Stop the Tor process */ 49 void stop Tor();52 void stop(); 50 53 51 54 /** Detect if the Tor process is running */ 52 bool torIsRunning();55 bool isRunning(); 53 56 54 57 /** Connect to Tor's control socket */
