Changeset 75

Show
Ignore:
Timestamp:
01/12/06 18:52:38 (3 years ago)
Author:
edmanm
Message:

Remove the word "Tor" from three methodss. It should be obvious that
we're talking about Tor since the class is called TorControl?;
Make TorControl? inherit QObject since, for my next trick, I will be exposing
some slotss and signals.

Location:
trunk/src/control
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/control/torcontrol.cpp

    r60 r75  
    4040 * started, otherwise returns false. */ 
    4141bool 
    42 TorControl::startTor(QString *errmsg) 
     42TorControl::start(QString *errmsg) 
    4343{ 
    4444  VidaliaSettings settings; 
     
    5050/** Stop the Tor process. */ 
    5151void 
    52 TorControl::stopTor() 
     52TorControl::stop() 
    5353{ 
    5454  _torProcess.stop(); 
     
    5757/** Detect if the Tor process is running. */ 
    5858bool 
    59 TorControl::torIsRunning() 
     59TorControl::isRunning() 
    6060{ 
    6161  return (_torProcess.pid() != 0); 
  • trunk/src/control/torcontrol.h

    r60 r75  
    2525#define _TORCONTROL_H 
    2626 
     27#include <QObject> 
    2728#include <QHash> 
    2829 
     
    3031#include "torprocess.h" 
    3132 
    32 class TorControl 
     33class TorControl : public QObject 
    3334{ 
     35  Q_OBJECT 
     36   
    3437private: 
    3538  ControlConnection _controlConn; 
    3639  TorProcess _torProcess; 
    37    
     40 
    3841public: 
    3942  /** Default constructor */ 
     
    4447 
    4548  /** Start the Tor process */ 
    46   bool startTor(QString *errmsg = 0); 
     49  bool start(QString *errmsg = 0); 
    4750 
    4851  /** Stop the Tor process */ 
    49   void stopTor(); 
     52  void stop(); 
    5053 
    5154  /** Detect if the Tor process is running */ 
    52   bool torIsRunning(); 
     55  bool isRunning(); 
    5356 
    5457  /** Connect to Tor's control socket */