Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 175dab679bc6804e9a6eb3a0598c67d2 > files > 45

rapidsvn-0.12.0-3.mga1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>SvnCpp: context_listener.hpp Source File</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.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>context_listener.hpp</h1><a href="context__listener_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * ====================================================================</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (c) 2002-2009 The RapidSvn Group.  All rights reserved.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This program is free software: you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment"> * (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment"> * along with this program (in the file GPL.txt.  </span>
<a name="l00017"></a>00017 <span class="comment"> * If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * This software consists of voluntary contributions made by many</span>
<a name="l00020"></a>00020 <span class="comment"> * individuals.  For exact contribution history, see the revision</span>
<a name="l00021"></a>00021 <span class="comment"> * history and logs, available at http://rapidsvn.tigris.org/.</span>
<a name="l00022"></a>00022 <span class="comment"> * ====================================================================</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef _SVNCPP_CONTEXT_LISTENER_HPP_</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define _SVNCPP_CONTEXT_LISTENER_HPP_</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="comment">// stl</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="string__wrapper_8hpp.html">svncpp/string_wrapper.hpp</a>"</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">// Subversion api</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "svn_client.h"</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="comment">// svncpp</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="pool_8hpp.html">svncpp/pool.hpp</a>"</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">namespace </span>svn
<a name="l00038"></a>00038 {
<a name="l00045"></a><a class="code" href="classsvn_1_1ContextListener.html">00045</a>   <span class="keyword">class </span><a class="code" href="classsvn_1_1ContextListener.html">ContextListener</a>
<a name="l00046"></a>00046   {
<a name="l00047"></a>00047   <span class="keyword">public</span>:
<a name="l00062"></a>00062     <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
<a name="l00063"></a>00063     <a class="code" href="classsvn_1_1ContextListener.html#288c00c9febf597577803797872bb0e9">contextGetLogin</a>(<span class="keyword">const</span> std::string &amp; realm,
<a name="l00064"></a>00064                     std::string &amp; username,
<a name="l00065"></a>00065                     std::string &amp; password,
<a name="l00066"></a>00066                     <span class="keywordtype">bool</span> &amp; maySave) = 0;
<a name="l00067"></a>00067 
<a name="l00080"></a>00080     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
<a name="l00081"></a>00081     <a class="code" href="classsvn_1_1ContextListener.html#5aaa8717ca94899ef17db34d7bc29b21">contextNotify</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path,
<a name="l00082"></a>00082                   svn_wc_notify_action_t action,
<a name="l00083"></a>00083                   svn_node_kind_t kind,
<a name="l00084"></a>00084                   <span class="keyword">const</span> <span class="keywordtype">char</span> *mime_type,
<a name="l00085"></a>00085                   svn_wc_notify_state_t content_state,
<a name="l00086"></a>00086                   svn_wc_notify_state_t prop_state,
<a name="l00087"></a>00087                   svn_revnum_t revision) = 0;
<a name="l00088"></a>00088 
<a name="l00089"></a>00089     <span class="comment">/*</span>
<a name="l00090"></a>00090 <span class="comment">     * this method will be called periodically to allow</span>
<a name="l00091"></a>00091 <span class="comment">     * the app to cancel long running operations</span>
<a name="l00092"></a>00092 <span class="comment">     *</span>
<a name="l00093"></a>00093 <span class="comment">     * @return cancel action?</span>
<a name="l00094"></a>00094 <span class="comment">     * @retval true cancel</span>
<a name="l00095"></a>00095 <span class="comment">     */</span>
<a name="l00096"></a>00096     <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
<a name="l00097"></a>00097     <a class="code" href="classsvn_1_1ContextListener.html#e3a16ef2d5fe8f2bd60cdd74c35e18b7">contextCancel</a>() = 0;
<a name="l00098"></a>00098 
<a name="l00110"></a>00110     <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
<a name="l00111"></a>00111     <a class="code" href="classsvn_1_1ContextListener.html#f425db4930a1154c6ecc102c447a2c0b">contextGetLogMessage</a>(std::string &amp; msg) = 0;
<a name="l00112"></a>00112 
<a name="l00113"></a><a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c">00113</a>     <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00114"></a>00114     {
<a name="l00115"></a><a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2cf73790912ab0a0631027d949c534325f">00115</a>       <a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2cf73790912ab0a0631027d949c534325f">DONT_ACCEPT</a> = 0,
<a name="l00116"></a><a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c0d1c80a15f866a671ce0902b1fe043c0">00116</a>       <a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c0d1c80a15f866a671ce0902b1fe043c0">ACCEPT_TEMPORARILY</a>,
<a name="l00117"></a><a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c9c50d7ef800a17d74dc739119c8c4ce9">00117</a>       <a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c9c50d7ef800a17d74dc739119c8c4ce9">ACCEPT_PERMANENTLY</a>
<a name="l00118"></a>00118     } <a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c">SslServerTrustAnswer</a>;
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 
<a name="l00125"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html">00125</a>     <span class="keyword">struct </span><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html">SslServerTrustData</a>
<a name="l00126"></a>00126     {
<a name="l00127"></a>00127 <span class="keyword">public</span>:
<a name="l00129"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">00129</a>       apr_uint32_t <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">failures</a>;
<a name="l00130"></a>00130 
<a name="l00132"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">00132</a>       std::string <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">hostname</a>;
<a name="l00133"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">00133</a>       std::string <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">fingerprint</a>;
<a name="l00134"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">00134</a>       std::string <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">validFrom</a>;
<a name="l00135"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">00135</a>       std::string <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">validUntil</a>;
<a name="l00136"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">00136</a>       std::string <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">issuerDName</a>;
<a name="l00137"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#969050a3eb12ee2fc0428de25b5ad8e0">00137</a>       std::string realm;
<a name="l00138"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#60cc503606f812ba42061038ee72751a">00138</a>       <span class="keywordtype">bool</span> maySave;
<a name="l00139"></a>00139 
<a name="l00140"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#db755ae1342e23ba3904214bc4d62aa4">00140</a>       <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#db755ae1342e23ba3904214bc4d62aa4">SslServerTrustData</a>(<span class="keyword">const</span> apr_uint32_t failures_ = 0)
<a name="l00141"></a>00141           : <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">failures</a>(failures_), <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">hostname</a>(<span class="stringliteral">""</span>), <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">fingerprint</a>(<span class="stringliteral">""</span>),
<a name="l00142"></a>00142           <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">validFrom</a>(<span class="stringliteral">""</span>), <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">validUntil</a>(<span class="stringliteral">""</span>), <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">issuerDName</a>(<span class="stringliteral">""</span>),
<a name="l00143"></a>00143           realm(<span class="stringliteral">""</span>), maySave(true)
<a name="l00144"></a>00144       {
<a name="l00145"></a>00145       }
<a name="l00146"></a>00146 
<a name="l00147"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#4de0c03c42ded7cfc2c441abd5074238">00147</a>       <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#db755ae1342e23ba3904214bc4d62aa4">SslServerTrustData</a>(<span class="keyword">const</span> <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html">SslServerTrustData</a> &amp; src)
<a name="l00148"></a>00148           : <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">failures</a>(src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">failures</a>)
<a name="l00149"></a>00149       {
<a name="l00150"></a>00150         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">hostname</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">hostname</a>;
<a name="l00151"></a>00151         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">fingerprint</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">fingerprint</a>;
<a name="l00152"></a>00152         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">validFrom</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">validFrom</a>;
<a name="l00153"></a>00153         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">validUntil</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">validUntil</a>;
<a name="l00154"></a>00154         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">issuerDName</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">issuerDName</a>;
<a name="l00155"></a>00155         realm = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#969050a3eb12ee2fc0428de25b5ad8e0">realm</a>;
<a name="l00156"></a>00156         maySave = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#60cc503606f812ba42061038ee72751a">maySave</a>;
<a name="l00157"></a>00157       }
<a name="l00158"></a>00158 
<a name="l00159"></a>00159       <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html">SslServerTrustData</a> &amp;
<a name="l00160"></a><a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#72bf8fdeff018e9230f118bb9e4a01bb">00160</a>       <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#72bf8fdeff018e9230f118bb9e4a01bb">operator =</a>(<span class="keyword">const</span> <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html">SslServerTrustData</a> &amp; src)
<a name="l00161"></a>00161       {
<a name="l00162"></a>00162         <span class="keywordflow">if</span> (<span class="keyword">this</span> == &amp;src)
<a name="l00163"></a>00163           <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00164"></a>00164 
<a name="l00165"></a>00165         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">hostname</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98283de45c37f05bc360cde54e74dc99">hostname</a>;
<a name="l00166"></a>00166         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">fingerprint</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#98d00128dfc1d254dcac86b98c694fc4">fingerprint</a>;
<a name="l00167"></a>00167         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">validFrom</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#7980986ab4de7e7c76be67933607d844">validFrom</a>;
<a name="l00168"></a>00168         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">validUntil</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#f314736e5af2a4dde876f49155262f26">validUntil</a>;
<a name="l00169"></a>00169         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">issuerDName</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#0a8ecfbc1a8d4cb3312e0e5f7bec7f51">issuerDName</a>;
<a name="l00170"></a>00170         realm = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#969050a3eb12ee2fc0428de25b5ad8e0">realm</a>;
<a name="l00171"></a>00171         maySave = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#60cc503606f812ba42061038ee72751a">maySave</a>;
<a name="l00172"></a>00172         <a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">failures</a> = src.<a class="code" href="structsvn_1_1ContextListener_1_1SslServerTrustData.html#ff2daf4d0e99d6ca6b8b03d7d4ad7c7f">failures</a>;
<a name="l00173"></a>00173 
<a name="l00174"></a>00174         <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00175"></a>00175       }
<a name="l00176"></a>00176     };
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 
<a name="l00187"></a>00187     <span class="keyword">virtual</span> <a class="code" href="classsvn_1_1ContextListener.html#b5c183d9d0e1bf8011fab8b8ec90ab2c">SslServerTrustAnswer</a>
<a name="l00188"></a>00188     <a class="code" href="classsvn_1_1ContextListener.html#192093852dada6a3d9de7c4124dd7224">contextSslServerTrustPrompt</a>(<span class="keyword">const</span> SslServerTrustData &amp; data,
<a name="l00189"></a>00189                                 apr_uint32_t &amp; acceptedFailures) = 0;
<a name="l00190"></a>00190 
<a name="l00195"></a>00195     <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
<a name="l00196"></a>00196     <a class="code" href="classsvn_1_1ContextListener.html#3de9a4ed0b641e2282c36d3930e1a3d1">contextSslClientCertPrompt</a>(std::string &amp; certFile) = 0;
<a name="l00197"></a>00197 
<a name="l00206"></a>00206     <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
<a name="l00207"></a>00207     <a class="code" href="classsvn_1_1ContextListener.html#6460d4a8712c747b740f89399b1ab982">contextSslClientCertPwPrompt</a>(std::string &amp; password,
<a name="l00208"></a>00208                                  <span class="keyword">const</span> std::string &amp; realm,
<a name="l00209"></a>00209                                  <span class="keywordtype">bool</span> &amp; maySave) = 0;
<a name="l00210"></a>00210 
<a name="l00211"></a><a class="code" href="classsvn_1_1ContextListener.html#169e5e1fffbe6a6b67e768a1c5acb39b">00211</a>     <span class="keyword">virtual</span> <a class="code" href="classsvn_1_1ContextListener.html#169e5e1fffbe6a6b67e768a1c5acb39b">~ContextListener</a>() { }
<a name="l00212"></a>00212   };
<a name="l00213"></a>00213 }
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="preprocessor">#endif</span>
<a name="l00216"></a>00216 <span class="preprocessor"></span><span class="comment">/* -----------------------------------------------------------------</span>
<a name="l00217"></a>00217 <span class="comment"> * local variables:</span>
<a name="l00218"></a>00218 <span class="comment"> * eval: (load-file "../../rapidsvn-dev.el")</span>
<a name="l00219"></a>00219 <span class="comment"> * end:</span>
<a name="l00220"></a>00220 <span class="comment"> */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 20 09:20:17 2009 for SvnCpp by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>