Show
Ignore:
Timestamp:
04/01/06 07:46:27 (3 years ago)
Author:
hipplej
Message:

First crack at getting the exit policy stuff to work. I'm tired so this is probably fundamentally flawed in some way but it appears to work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/config/serverpage.h

    r535 r549  
    3131#include <control/torcontrol.h> 
    3232#include <config/serversettings.h> 
     33#include <config/exitpolicy.h> 
    3334#include "../help/browser/helpbrowser.h" 
    3435 
     
    6970  /** Returns the index of the selected item in lstExitPolicies */ 
    7071  int selectedIndex(); 
    71   
     72  /** Adds a new exit policy to the exit policy list */ 
     73  void addPolicyItem(QString action, QString address, QString mask, 
     74                     QString fromPort, QString toPort); 
     75  void addPolicyItem(Policy policy); 
     76  /** Saves the policy specified in item to the exitPolicy */ 
     77  void savePolicy(QTreeWidgetItem *item, ExitPolicy &exitPolicy); 
     78  /** Moves or appends the necessary default rule as specified by the user */ 
     79  void setDefaultRule(); 
     80 
    7281  /** A TorControl object used to talk to Tor */ 
    7382  TorControl* _torControl;