<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libzypp: zypp/repo/RepoProvideFile.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('RepoProvideFile_8h_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">RepoProvideFile.h</div> </div> </div><!--header--> <div class="contents"> <a href="RepoProvideFile_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">| ____ _ __ __ ___ |</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">| |__ / \ / / . \ . \ |</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">| / / \ V /| _/ _/ |</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">| / /__ | | | | | | |</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">| /_____||_| |_| |_| |</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">| |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef ZYPP_REPO_REPOPROVIDEFILE_H</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#define ZYPP_REPO_REPOPROVIDEFILE_H</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <iosfwd></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="PtrTypes_8h.html">zypp/base/PtrTypes.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="Function_8h.html">zypp/base/Function.h</a>"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="Functional_8h.html">zypp/base/Functional.h</a>"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="RepoInfo_8h.html">zypp/RepoInfo.h</a>"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="ManagedFile_8h.html">zypp/ManagedFile.h</a>"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="OnMediaLocation_8h.html">zypp/OnMediaLocation.h</a>"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="ProvideFilePolicy_8h.html">zypp/ProvideFilePolicy.h</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> { </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">namespace </span>repo</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  { </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="comment">//</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="comment">// provideFile</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="comment">//</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"></span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="namespacezypp.html#a5fcd6472a3b41932c690d08b57443a1c">ManagedFile</a> <a class="code" href="namespacezypp_1_1repo.html#a2e6b5d14afa0af8e52925c440fa77435">provideFile</a>( RepoInfo repo_r,</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">const</span> OnMediaLocation & loc_r,</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">const</span> ProvideFilePolicy & policy_r = ProvideFilePolicy() );</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1RepoMediaAccess.html"> 60</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html">RepoMediaAccess</a></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd61de5c9892053c40f0fd46f634fc31">RepoMediaAccess</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> & defaultPolicy_r = <a class="code" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>() );</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a37996b65973e56c66860afa9e18966d3">~RepoMediaAccess</a>();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classzypp_1_1AutoDispose.html">ManagedFile</a> <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd522c2f7d27db8e9d50269b61e7bc54">provideFile</a>( <a class="code" href="classzypp_1_1RepoInfo.html">RepoInfo</a> repo_r,</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">const</span> <a class="code" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> & loc_r,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> <a class="code" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> & policy_r );</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a5d10761df6ce1f1ad1af0e29da9e9f6d"> 81</a></span>  <a class="code" href="classzypp_1_1AutoDispose.html">ManagedFile</a> <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a5d10761df6ce1f1ad1af0e29da9e9f6d">provideFile</a>( <a class="code" href="classzypp_1_1RepoInfo.html">RepoInfo</a> repo_r, <span class="keyword">const</span> <a class="code" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> & loc_r )</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  { <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd522c2f7d27db8e9d50269b61e7bc54">provideFile</a>( repo_r, loc_r, <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#ab6f899fefa36212ca0ee3fbc412b98ed">defaultPolicy</a>() ); }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a0c2e601bbfc469c35265848c1a9850cd">setDefaultPolicy</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> & policy_r );</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">const</span> <a class="code" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> & <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#ab6f899fefa36212ca0ee3fbc412b98ed">defaultPolicy</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a3780c853a840d8e97a17a3e214bd4b8a"> 92</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess_1_1Impl.html">Impl</a>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="structzypp_1_1RW__pointer.html">RW_pointer<Impl></a> <a class="code" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a3780c853a840d8e97a17a3e214bd4b8a">_impl</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  };</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  } <span class="comment">// namespace repo</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"></span>} <span class="comment">// namespace zypp</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"></span><span class="preprocessor">#endif // ZYPP_REPO_REPOPROVIDEFILE_H</span></div><div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_ab6f899fefa36212ca0ee3fbc412b98ed"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#ab6f899fefa36212ca0ee3fbc412b98ed">zypp::repo::RepoMediaAccess::defaultPolicy</a></div><div class="ttdeci">const ProvideFilePolicy & defaultPolicy() const</div><div class="ttdoc">Get the current default ProvideFilePolicy.</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00245">RepoProvideFile.cc:245</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_a5d10761df6ce1f1ad1af0e29da9e9f6d"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#a5d10761df6ce1f1ad1af0e29da9e9f6d">zypp::repo::RepoMediaAccess::provideFile</a></div><div class="ttdeci">ManagedFile provideFile(RepoInfo repo_r, const OnMediaLocation &loc_r)</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8h_source.html#l00081">RepoProvideFile.h:81</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_acd522c2f7d27db8e9d50269b61e7bc54"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd522c2f7d27db8e9d50269b61e7bc54">zypp::repo::RepoMediaAccess::provideFile</a></div><div class="ttdeci">ManagedFile provideFile(RepoInfo repo_r, const OnMediaLocation &loc_r, const ProvideFilePolicy &policy_r)</div><div class="ttdoc">Provide a file from a Repository.</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00248">RepoProvideFile.cc:248</a></div></div> <div class="ttc" id="classzypp_1_1OnMediaLocation_html"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html">zypp::OnMediaLocation</a></div><div class="ttdoc">Describes a path on a certain media amongs as the information required to download it,...</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00039">OnMediaLocation.h:39</a></div></div> <div class="ttc" id="classzypp_1_1RepoInfo_html"><div class="ttname"><a href="classzypp_1_1RepoInfo.html">zypp::RepoInfo</a></div><div class="ttdoc">What is known about a repository.</div><div class="ttdef"><b>Definition:</b> <a href="RepoInfo_8h_source.html#l00071">RepoInfo.h:71</a></div></div> <div class="ttc" id="namespacezypp_html_a5fcd6472a3b41932c690d08b57443a1c"><div class="ttname"><a href="namespacezypp.html#a5fcd6472a3b41932c690d08b57443a1c">zypp::ManagedFile</a></div><div class="ttdeci">AutoDispose< const Pathname > ManagedFile</div><div class="ttdoc">A Pathname plus associated cleanup code to be executed when path is no longer needed.</div><div class="ttdef"><b>Definition:</b> <a href="ManagedFile_8h_source.html#l00027">ManagedFile.h:27</a></div></div> <div class="ttc" id="classzypp_1_1ProvideFilePolicy_html"><div class="ttname"><a href="classzypp_1_1ProvideFilePolicy.html">zypp::ProvideFilePolicy</a></div><div class="ttdoc">Policy for provideFile and RepoMediaAccess.</div><div class="ttdef"><b>Definition:</b> <a href="ProvideFilePolicy_8h_source.html#l00029">ProvideFilePolicy.h:29</a></div></div> <div class="ttc" id="PtrTypes_8h_html"><div class="ttname"><a href="PtrTypes_8h.html">PtrTypes.h</a></div></div> <div class="ttc" id="ProvideFilePolicy_8h_html"><div class="ttname"><a href="ProvideFilePolicy_8h.html">ProvideFilePolicy.h</a></div></div> <div class="ttc" id="namespacezypp_1_1repo_html_a2e6b5d14afa0af8e52925c440fa77435"><div class="ttname"><a href="namespacezypp_1_1repo.html#a2e6b5d14afa0af8e52925c440fa77435">zypp::repo::provideFile</a></div><div class="ttdeci">ManagedFile provideFile(RepoInfo repo_r, const OnMediaLocation &loc_r, const ProvideFilePolicy &policy_r)</div><div class="ttdoc">Provide a file from a Repository.</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00112">RepoProvideFile.cc:112</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_acd61de5c9892053c40f0fd46f634fc31"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd61de5c9892053c40f0fd46f634fc31">zypp::repo::RepoMediaAccess::RepoMediaAccess</a></div><div class="ttdeci">RepoMediaAccess(const ProvideFilePolicy &defaultPolicy_r=ProvideFilePolicy())</div><div class="ttdoc">Ctor taking the default ProvideFilePolicy.</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00235">RepoProvideFile.cc:235</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html">zypp::repo::RepoMediaAccess</a></div><div class="ttdoc">Provides files from different repos.</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8h_source.html#l00060">RepoProvideFile.h:60</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_a37996b65973e56c66860afa9e18966d3"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#a37996b65973e56c66860afa9e18966d3">zypp::repo::RepoMediaAccess::~RepoMediaAccess</a></div><div class="ttdeci">~RepoMediaAccess()</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00239">RepoProvideFile.cc:239</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_1_1Impl_html"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess_1_1Impl.html">zypp::repo::RepoMediaAccess::Impl</a></div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00121">RepoProvideFile.cc:121</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_a3780c853a840d8e97a17a3e214bd4b8a"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#a3780c853a840d8e97a17a3e214bd4b8a">zypp::repo::RepoMediaAccess::_impl</a></div><div class="ttdeci">RW_pointer< Impl > _impl</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8h_source.html#l00092">RepoProvideFile.h:92</a></div></div> <div class="ttc" id="OnMediaLocation_8h_html"><div class="ttname"><a href="OnMediaLocation_8h.html">OnMediaLocation.h</a></div></div> <div class="ttc" id="ManagedFile_8h_html"><div class="ttname"><a href="ManagedFile_8h.html">ManagedFile.h</a></div></div> <div class="ttc" id="Function_8h_html"><div class="ttname"><a href="Function_8h.html">Function.h</a></div></div> <div class="ttc" id="structzypp_1_1RW__pointer_html"><div class="ttname"><a href="structzypp_1_1RW__pointer.html">zypp::RW_pointer< Impl ></a></div></div> <div class="ttc" id="classzypp_1_1AutoDispose_html"><div class="ttname"><a href="classzypp_1_1AutoDispose.html">zypp::AutoDispose</a></div><div class="ttdoc">Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...</div><div class="ttdef"><b>Definition:</b> <a href="AutoDispose_8h_source.html#l00092">AutoDispose.h:92</a></div></div> <div class="ttc" id="Functional_8h_html"><div class="ttname"><a href="Functional_8h.html">Functional.h</a></div></div> <div class="ttc" id="RepoInfo_8h_html"><div class="ttname"><a href="RepoInfo_8h.html">RepoInfo.h</a></div></div> <div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div> <div class="ttc" id="classzypp_1_1repo_1_1RepoMediaAccess_html_a0c2e601bbfc469c35265848c1a9850cd"><div class="ttname"><a href="classzypp_1_1repo_1_1RepoMediaAccess.html#a0c2e601bbfc469c35265848c1a9850cd">zypp::repo::RepoMediaAccess::setDefaultPolicy</a></div><div class="ttdeci">void setDefaultPolicy(const ProvideFilePolicy &policy_r)</div><div class="ttdoc">Set a new default ProvideFilePolicy.</div><div class="ttdef"><b>Definition:</b> <a href="RepoProvideFile_8cc_source.html#l00242">RepoProvideFile.cc:242</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="dir_87611d73de4eb3bd0276658efbbf5b67.html">repo</a></li><li class="navelem"><a class="el" href="RepoProvideFile_8h.html">RepoProvideFile.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>