~jackweirdy/vidalia/680192

« back to all changes in this revision

Viewing changes to src/torcontrol/BootstrapStatus.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
 
11
 
/* 
 
11
/*
12
12
** \file BootstrapStatus.h
13
13
** \brief Describes the Tor software's current bootstrap status
14
14
*/
26
26
{
27
27
public:
28
28
  /** Currently enumerated bootstrapping states defined by Tor's control
29
 
   * protocol (Tor >= 0.2.1.0-alpha-dev. */ 
 
29
   * protocol (Tor >= 0.2.1.0-alpha-dev. */
30
30
  enum Status {
31
31
    UnrecognizedStatus,
32
32
    ConnectingToDirMirror,
74
74
 
75
75
  /** Returns a description of Tor's current bootstrapping status. */
76
76
  QString description() const { return _description; }
77
 
  
 
77
 
78
78
  /** Returns a description of the most recent error Tor encountered while
79
79
   * attempting to bootstrap, if this event's severity is 'warn'. Otherwise,
80
80
   * this returns a default-constructed QString. */
87
87
  tc::ConnectionStatusReason reason() const { return _reason; }
88
88
 
89
89
  /** Returns the action that the Tor software recommended be taken in
90
 
   * response to this bootstrap status event. */ 
 
90
   * response to this bootstrap status event. */
91
91
  Recommendation recommendedAction() const { return _action; }
92
92
 
93
93
  /** Returns true if this object represents a valid bootstrap status
108
108
 
109
109
  /** Current bootstrapping status value.
110
110
   * \sa status
111
 
   */ 
 
111
   */
112
112
  Status _status;
113
 
  
 
113
 
114
114
  /** Approximate percentage of Tor's bootstrapping process that is complete.
115
115
   * \sa percentComplete
116
116
   */
117
117
  int _percentComplete;
118
 
  
 
118
 
119
119
  /** Description of Tor's current bootstrapping status.
120
120
   * \sa description
121
121
   */
122
122
  QString _description;
123
 
  
 
123
 
124
124
  /** Description of the most recent error Tor encountered while attempting to
125
 
   * bootstrap. 
 
125
   * bootstrap.
126
126
   * \sa warning
127
127
   */
128
128
  QString _warning;