Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 9601c7beb4ff23e834bfa171795ed560 > files > 448

vidalia-0.2.9-1mdv2010.1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Vidalia: BridgeDownloader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>BridgeDownloader Class Reference</h1><!-- doxytag: class="BridgeDownloader" -->
<p><code>#include &lt;<a class="el" href="_bridge_downloader_8h_source.html">BridgeDownloader.h</a>&gt;</code></p>

<p><a href="class_bridge_downloader-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037">BridgeDownloadMethod</a> { <a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037ad0c2f26429d57bef2cd5957387d6eb05">DownloadMethodHttps</a>
 }</td></tr>
<tr><td colspan="2"><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a69259d4eb6ec2715110343f6775b355f">cancelBridgeRequest</a> ()</td></tr>
<tr><td colspan="2"><h2>Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#ab4cc058b620e27f3db27ff5394fdb303">downloadProgress</a> (int done, int total)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#aeefbf3812b7249dc5a1c3019dd9e5ddc">statusChanged</a> (const QString &amp;status)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#aa1fa83631418d786df7ee68606cdd50c">bridgeRequestFinished</a> (const QStringList &amp;bridges)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a6fc4ad4b3abcd6c0c875ea371b327491">bridgeRequestFailed</a> (const QString &amp;error)</td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#ad6b806a9ace96c296873704b830923a3">BridgeDownloader</a> (QObject *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#abb849b1ad80522a4809000f110025198">downloadBridges</a> (<a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037">BridgeDownloadMethod</a> method)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a3f4e6fb9d6d0d2fa9f180ad69644382b">setProxy</a> (const QString &amp;host, int port, const QString &amp;username=QString(), const QString &amp;password=QString())</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a37237c2da19e2c8b3699aa971b081079">isMethodSupported</a> (<a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037">BridgeDownloadMethod</a> method)</td></tr>
<tr><td colspan="2"><h2>Private Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#adcb64a86c89bee40fd2d35a52debb77a">httpsStateChanged</a> (int state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a0f5e1b9188bf8d28a4f4207e3985c65a">httpsRequestFinished</a> (int id, bool error)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a7dc7e9c457cbfdcc6a4251687e972329">sslErrors</a> (const QList&lt; QSslError &gt; &amp;sslErrors)</td></tr>
<tr><td colspan="2"><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#aed8a8eef20fe43ab939f4eb9b49b6e43">startHttpsDownload</a> ()</td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHttp *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#ae44a2677dcde706dc7deb63e5a243eca">_https</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bridge_downloader.html#a38f0166f171285121e7fa17d9b426e7c">_requestId</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="_bridge_downloader_8h_source.html#l00025">25</a> of file <a class="el" href="_bridge_downloader_8h_source.html">BridgeDownloader.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="ab1a059be506eb6f2b16f2d6c77753037"></a><!-- doxytag: member="BridgeDownloader::BridgeDownloadMethod" ref="ab1a059be506eb6f2b16f2d6c77753037" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037">BridgeDownloader::BridgeDownloadMethod</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Available bridge download methods. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ab1a059be506eb6f2b16f2d6c77753037ad0c2f26429d57bef2cd5957387d6eb05"></a><!-- doxytag: member="DownloadMethodHttps" ref="ab1a059be506eb6f2b16f2d6c77753037ad0c2f26429d57bef2cd5957387d6eb05" args="" -->DownloadMethodHttps</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="_bridge_downloader_8h_source.html#l00031">31</a> of file <a class="el" href="_bridge_downloader_8h_source.html">BridgeDownloader.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad6b806a9ace96c296873704b830923a3"></a><!-- doxytag: member="BridgeDownloader::BridgeDownloader" ref="ad6b806a9ace96c296873704b830923a3" args="(QObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BridgeDownloader::BridgeDownloader </td>
          <td>(</td>
          <td class="paramtype">QObject *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00026">26</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00119">_https</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00022">BRIDGEDB_HOST</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00023">BRIDGEDB_PORT</a>, <a class="el" href="class_bridge_downloader.html#ab4cc058b620e27f3db27ff5394fdb303">downloadProgress()</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00121">httpsRequestFinished()</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00099">httpsStateChanged()</a>, and <a class="el" href="_bridge_downloader_8cpp_source.html#l00148">sslErrors()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6fc4ad4b3abcd6c0c875ea371b327491"></a><!-- doxytag: member="BridgeDownloader::bridgeRequestFailed" ref="a6fc4ad4b3abcd6c0c875ea371b327491" args="(const QString &amp;error)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::bridgeRequestFailed </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>error</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Emitted when the previous request for bridge addresses fails. The QString <b>error</b> is a human-readable string describing the error encountered. </p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00121">httpsRequestFinished()</a>.</p>

</div>
</div>
<a class="anchor" id="aa1fa83631418d786df7ee68606cdd50c"></a><!-- doxytag: member="BridgeDownloader::bridgeRequestFinished" ref="aa1fa83631418d786df7ee68606cdd50c" args="(const QStringList &amp;bridges)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::bridgeRequestFinished </td>
          <td>(</td>
          <td class="paramtype">const QStringList &amp;&nbsp;</td>
          <td class="paramname"> <em>bridges</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Emitted when the previous request for bridge addresses completes successfully. The QStringList <b>bridges</b> contains a (possibly empty) list of bridge addresses parsed from the received response. </p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00121">httpsRequestFinished()</a>.</p>

</div>
</div>
<a class="anchor" id="a69259d4eb6ec2715110343f6775b355f"></a><!-- doxytag: member="BridgeDownloader::cancelBridgeRequest" ref="a69259d4eb6ec2715110343f6775b355f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::cancelBridgeRequest </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Cancels any pending bridge download requests. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00093">93</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00119">_https</a>.</p>

<p>Referenced by <a class="el" href="_network_page_8cpp_source.html#l00387">NetworkPage::findBridges()</a>.</p>

</div>
</div>
<a class="anchor" id="abb849b1ad80522a4809000f110025198"></a><!-- doxytag: member="BridgeDownloader::downloadBridges" ref="abb849b1ad80522a4809000f110025198" args="(BridgeDownloadMethod method)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BridgeDownloader::downloadBridges </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037">BridgeDownloadMethod</a>&nbsp;</td>
          <td class="paramname"> <em>method</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initiates a request for a set of bridges using the specified download <b>method</b>. Returns true if the request was initiated successfully, or false on error. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00051">51</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00032">DownloadMethodHttps</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00068">isMethodSupported()</a>, and <a class="el" href="_bridge_downloader_8cpp_source.html#l00081">startHttpsDownload()</a>.</p>

<p>Referenced by <a class="el" href="_network_page_8cpp_source.html#l00417">NetworkPage::startBridgeRequest()</a>.</p>

</div>
</div>
<a class="anchor" id="ab4cc058b620e27f3db27ff5394fdb303"></a><!-- doxytag: member="BridgeDownloader::downloadProgress" ref="ab4cc058b620e27f3db27ff5394fdb303" args="(int done, int total)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::downloadProgress </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>done</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>total</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Emitted when the underlying QHttp object reads data from an HTTPS response. <b>done</b> indicates how many bytes out of <b>total</b> have been read so far. Note that <b>total</b> may be 0 if the expected total size of the response is not known. </p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00026">BridgeDownloader()</a>, and <a class="el" href="_bridge_downloader_8cpp_source.html#l00081">startHttpsDownload()</a>.</p>

</div>
</div>
<a class="anchor" id="a0f5e1b9188bf8d28a4f4207e3985c65a"></a><!-- doxytag: member="BridgeDownloader::httpsRequestFinished" ref="a0f5e1b9188bf8d28a4f4207e3985c65a" args="(int id, bool error)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::httpsRequestFinished </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>error</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when the underlying QHttp object used to make the bridge request completes. <b>error</b> is set to false if the request was successful, or true if the request failed. If <b>id</b> does not match the request ID previously returned by QHttp::get(), then the signal is ignored since it is the result of a close() or abort() request. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00121">121</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00119">_https</a>, <a class="el" href="_bridge_downloader_8h_source.html#l00122">_requestId</a>, <a class="el" href="class_bridge_downloader.html#a6fc4ad4b3abcd6c0c875ea371b327491">bridgeRequestFailed()</a>, <a class="el" href="class_bridge_downloader.html#aa1fa83631418d786df7ee68606cdd50c">bridgeRequestFinished()</a>, <a class="el" href="_vidalia_8h_source.html#l00040">vInfo</a>, and <a class="el" href="_vidalia_8h_source.html#l00042">vWarn</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00026">BridgeDownloader()</a>.</p>

</div>
</div>
<a class="anchor" id="adcb64a86c89bee40fd2d35a52debb77a"></a><!-- doxytag: member="BridgeDownloader::httpsStateChanged" ref="adcb64a86c89bee40fd2d35a52debb77a" args="(int state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::httpsStateChanged </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>state</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when the state of the underlying QHttp object changes. A <a class="el" href="class_bridge_downloader.html#aeefbf3812b7249dc5a1c3019dd9e5ddc">statusChanged()</a> signal is emitted with the appropriate text describing the new state of the request. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00099">99</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8cpp_source.html#l00022">BRIDGEDB_HOST</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00023">BRIDGEDB_PORT</a>, and <a class="el" href="class_bridge_downloader.html#aeefbf3812b7249dc5a1c3019dd9e5ddc">statusChanged()</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00026">BridgeDownloader()</a>.</p>

</div>
</div>
<a class="anchor" id="a37237c2da19e2c8b3699aa971b081079"></a><!-- doxytag: member="BridgeDownloader::isMethodSupported" ref="a37237c2da19e2c8b3699aa971b081079" args="(BridgeDownloadMethod method)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BridgeDownloader::isMethodSupported </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_bridge_downloader.html#ab1a059be506eb6f2b16f2d6c77753037">BridgeDownloadMethod</a>&nbsp;</td>
          <td class="paramname"> <em>method</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if <b>method</b> is supported by the currently available Qt libraries. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00068">68</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00032">DownloadMethodHttps</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00051">downloadBridges()</a>, and <a class="el" href="_network_page_8cpp_source.html#l00037">NetworkPage::NetworkPage()</a>.</p>

</div>
</div>
<a class="anchor" id="a3f4e6fb9d6d0d2fa9f180ad69644382b"></a><!-- doxytag: member="BridgeDownloader::setProxy" ref="a3f4e6fb9d6d0d2fa9f180ad69644382b" args="(const QString &amp;host, int port, const QString &amp;username=QString(), const QString &amp;password=QString())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::setProxy </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>username</em> = <code>QString()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>password</em> = <code>QString()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Enables HTTPS proxy support, using the proxy server <b>host</b> on port <b>port</b>. A <b>username</b> and <b>password</b> can also optionally be supplied, if required by the proxy. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00044">44</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00119">_https</a>.</p>

<p>Referenced by <a class="el" href="_network_page_8cpp_source.html#l00417">NetworkPage::startBridgeRequest()</a>.</p>

</div>
</div>
<a class="anchor" id="a7dc7e9c457cbfdcc6a4251687e972329"></a><!-- doxytag: member="BridgeDownloader::sslErrors" ref="a7dc7e9c457cbfdcc6a4251687e972329" args="(const QList&lt; QSslError &gt; &amp;sslErrors)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::sslErrors </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; QSslError &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>sslErrors</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when the HTTPS connection encounters one or more <b>sslErrors</b>. Currently the errors are just logged and <a class="el" href="class_bridge_downloader.html#a6fc4ad4b3abcd6c0c875ea371b327491">bridgeRequestFailed()</a> is <em>not</em> emitted, since QHttp will also emit </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00148">148</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00122">_requestId</a>, and <a class="el" href="_vidalia_8h_source.html#l00042">vWarn</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00026">BridgeDownloader()</a>.</p>

</div>
</div>
<a class="anchor" id="aed8a8eef20fe43ab939f4eb9b49b6e43"></a><!-- doxytag: member="BridgeDownloader::startHttpsDownload" ref="aed8a8eef20fe43ab939f4eb9b49b6e43" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::startHttpsDownload </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initiates an HTTPS connection to bridges.torproject.org to start downloading a set of bridges. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8cpp_source.html#l00081">81</a> of file <a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a>.</p>

<p>References <a class="el" href="_bridge_downloader_8h_source.html#l00119">_https</a>, <a class="el" href="_bridge_downloader_8h_source.html#l00122">_requestId</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00022">BRIDGEDB_HOST</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00023">BRIDGEDB_PORT</a>, <a class="el" href="class_bridge_downloader.html#ab4cc058b620e27f3db27ff5394fdb303">downloadProgress()</a>, <a class="el" href="class_bridge_downloader.html#aeefbf3812b7249dc5a1c3019dd9e5ddc">statusChanged()</a>, and <a class="el" href="_vidalia_8h_source.html#l00040">vInfo</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00051">downloadBridges()</a>.</p>

</div>
</div>
<a class="anchor" id="aeefbf3812b7249dc5a1c3019dd9e5ddc"></a><!-- doxytag: member="BridgeDownloader::statusChanged" ref="aeefbf3812b7249dc5a1c3019dd9e5ddc" args="(const QString &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BridgeDownloader::statusChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Emitted when the status of the bridge request changes. <b>status</b> describes the new current state of the request. </p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00099">httpsStateChanged()</a>, and <a class="el" href="_bridge_downloader_8cpp_source.html#l00081">startHttpsDownload()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ae44a2677dcde706dc7deb63e5a243eca"></a><!-- doxytag: member="BridgeDownloader::_https" ref="ae44a2677dcde706dc7deb63e5a243eca" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHttp* <a class="el" href="class_bridge_downloader.html#ae44a2677dcde706dc7deb63e5a243eca">BridgeDownloader::_https</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to connect to the bridge database, send an HTTPS request for new bridge addresses and then read the response. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8h_source.html#l00119">119</a> of file <a class="el" href="_bridge_downloader_8h_source.html">BridgeDownloader.h</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00026">BridgeDownloader()</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00093">cancelBridgeRequest()</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00121">httpsRequestFinished()</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00044">setProxy()</a>, and <a class="el" href="_bridge_downloader_8cpp_source.html#l00081">startHttpsDownload()</a>.</p>

</div>
</div>
<a class="anchor" id="a38f0166f171285121e7fa17d9b426e7c"></a><!-- doxytag: member="BridgeDownloader::_requestId" ref="a38f0166f171285121e7fa17d9b426e7c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_bridge_downloader.html#a38f0166f171285121e7fa17d9b426e7c">BridgeDownloader::_requestId</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Unique numeric identifier of the current bridge request. </p>

<p>Definition at line <a class="el" href="_bridge_downloader_8h_source.html#l00122">122</a> of file <a class="el" href="_bridge_downloader_8h_source.html">BridgeDownloader.h</a>.</p>

<p>Referenced by <a class="el" href="_bridge_downloader_8cpp_source.html#l00121">httpsRequestFinished()</a>, <a class="el" href="_bridge_downloader_8cpp_source.html#l00148">sslErrors()</a>, and <a class="el" href="_bridge_downloader_8cpp_source.html#l00081">startHttpsDownload()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_bridge_downloader_8h_source.html">BridgeDownloader.h</a></li>
<li><a class="el" href="_bridge_downloader_8cpp_source.html">BridgeDownloader.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:56 2010 for Vidalia by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>