~jackweirdy/vidalia/680192

« back to all changes in this revision

Viewing changes to src/vidalia/config/ExitPolicy.h

  • Committer: Package Import Robot
  • Author(s): Ulises Vitulli, intrigeri, Ulises Vitulli
  • Date: 2012-06-22 07:18:44 UTC
  • mfrom: (1.4.8) (8.2.13 sid)
  • Revision ID: package-import@ubuntu.com-20120622071844-s278v0p646pqt949
Tags: 0.2.19-1
[ intrigeri ]
* Imported Upstream version 0.2.19
* Install AppArmor profile.
* Enable hardening flags.

[ Ulises Vitulli ]
* Added runtime dependency on apparmor.
* Updated d/NEWS and d/README.Debian to reflect new features.
* Move dirs from d/rules to d/vidalia.dir.
* Updated Standard-version to 3.9.3 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
**  LICENSE file, found in the top level directory of this distribution. If you
4
4
**  did not receive the LICENSE file with this file, you may obtain it from the
5
5
**  Vidalia source package distributed by the Vidalia Project at
6
 
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia, 
7
 
**  including this file, may be copied, modified, propagated, or distributed 
 
6
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
 
7
**  including this file, may be copied, modified, propagated, or distributed
8
8
**  except according to the terms described in the LICENSE file.
9
9
*/
10
10
 
31
31
    Default,  /**< Specifies the default exit policy. */
32
32
    Middleman /**< Specifies a middleman-only exit policy. */
33
33
  };
34
 
  
 
34
 
35
35
  /** Default constructor. */
36
36
  ExitPolicy();
37
37
  /** Creates an exit policy of the given special type. */
38
38
  ExitPolicy(SpecialExitPolicy exitPolicy);
39
39
  /** Creates an exit policy from the given comma-delimited list of policies. */
40
40
  ExitPolicy(QString exitPolicy);
41
 
  
 
41
 
42
42
  /** Adds the ports specified in <b>portList</b> to a list of ports accepted
43
43
   * by this exit policy. Ports may be given either individually or as ranges. */
44
44
  void addAcceptedPorts(QStringList portList);
53
53
   * <b>portList</b>. Ports in <b>portList</b> may be given either individually
54
54
   * or as ranges. */
55
55
  bool rejectsPorts(QStringList portList);
56
 
  
 
56
 
57
57
  /** Adds a rule to the exit policy. */
58
58
  void addPolicy(Policy policy);
59
59
  /** Removes a rule from the exit policy. */
63
63
 
64
64
  /** Returns the list of policies for this exit policy. */
65
65
  QList<Policy> policyList() { return  _exitPolicy; }
66
 
  
67
 
  /** Converts the exit policy to a format Tor understands. */  
 
66
 
 
67
  /** Converts the exit policy to a format Tor understands. */
68
68
  QString toString();
69
 
  
 
69
 
70
70
private:
71
71
  /** A collection of policies forming the exit policy. */
72
72
  QList<Policy> _exitPolicy;