Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 68c0c2ff89d8bf9051ff1b9773ed48e4 > files > 5109

libzypp-doc-17.9.0-1.1.mga7.noarch.rpm

<!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::RepoMediaAccess Class Reference</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&amp;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
   &#160;<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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classzypp_1_1repo_1_1RepoMediaAccess.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classzypp_1_1repo_1_1RepoMediaAccess-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">zypp::repo::RepoMediaAccess Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides files from different repos.  
 <a href="classzypp_1_1repo_1_1RepoMediaAccess.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="RepoProvideFile_8h_source.html">RepoProvideFile.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess_1_1Impl.html">Impl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acd61de5c9892053c40f0fd46f634fc31"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd61de5c9892053c40f0fd46f634fc31">RepoMediaAccess</a> (const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;defaultPolicy_r=<a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>())</td></tr>
<tr class="memdesc:acd61de5c9892053c40f0fd46f634fc31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ctor taking the default <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>.  <a href="#acd61de5c9892053c40f0fd46f634fc31">More...</a><br /></td></tr>
<tr class="separator:acd61de5c9892053c40f0fd46f634fc31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37996b65973e56c66860afa9e18966d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a37996b65973e56c66860afa9e18966d3">~RepoMediaAccess</a> ()</td></tr>
<tr class="separator:a37996b65973e56c66860afa9e18966d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd522c2f7d27db8e9d50269b61e7bc54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacezypp.html#a5fcd6472a3b41932c690d08b57443a1c">ManagedFile</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#acd522c2f7d27db8e9d50269b61e7bc54">provideFile</a> (<a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a> repo_r, const <a class="el" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> &amp;loc_r, const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;policy_r)</td></tr>
<tr class="memdesc:acd522c2f7d27db8e9d50269b61e7bc54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a file from a <a class="el" href="classzypp_1_1Repository.html">Repository</a>.  <a href="#acd522c2f7d27db8e9d50269b61e7bc54">More...</a><br /></td></tr>
<tr class="separator:acd522c2f7d27db8e9d50269b61e7bc54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d10761df6ce1f1ad1af0e29da9e9f6d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacezypp.html#a5fcd6472a3b41932c690d08b57443a1c">ManagedFile</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a5d10761df6ce1f1ad1af0e29da9e9f6d">provideFile</a> (<a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a> repo_r, const <a class="el" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> &amp;loc_r)</td></tr>
<tr class="separator:a5d10761df6ce1f1ad1af0e29da9e9f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c2e601bbfc469c35265848c1a9850cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a0c2e601bbfc469c35265848c1a9850cd">setDefaultPolicy</a> (const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;policy_r)</td></tr>
<tr class="memdesc:a0c2e601bbfc469c35265848c1a9850cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a new default <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>.  <a href="#a0c2e601bbfc469c35265848c1a9850cd">More...</a><br /></td></tr>
<tr class="separator:a0c2e601bbfc469c35265848c1a9850cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6f899fefa36212ca0ee3fbc412b98ed"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#ab6f899fefa36212ca0ee3fbc412b98ed">defaultPolicy</a> () const</td></tr>
<tr class="memdesc:ab6f899fefa36212ca0ee3fbc412b98ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current default <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>.  <a href="#ab6f899fefa36212ca0ee3fbc412b98ed">More...</a><br /></td></tr>
<tr class="separator:ab6f899fefa36212ca0ee3fbc412b98ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a3780c853a840d8e97a17a3e214bd4b8a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structzypp_1_1RW__pointer.html">RW_pointer</a>&lt; <a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess_1_1Impl.html">Impl</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html#a3780c853a840d8e97a17a3e214bd4b8a">_impl</a></td></tr>
<tr class="separator:a3780c853a840d8e97a17a3e214bd4b8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides files from different repos. </p>
<p>Class that allows to get files from repositories It handles automatically setting media verifiers if the repo is cached, and reuses media set access opened for repositories during its scope, so you can provide files from different repositories in different order without opening and closing medias all the time </p>

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8h_source.html#l00060">60</a> of file <a class="el" href="RepoProvideFile_8h_source.html">RepoProvideFile.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="acd61de5c9892053c40f0fd46f634fc31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd61de5c9892053c40f0fd46f634fc31">&#9670;&nbsp;</a></span>RepoMediaAccess()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zypp::repo::RepoMediaAccess::RepoMediaAccess </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;&#160;</td>
          <td class="paramname"><em>defaultPolicy_r</em> = <code><a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ctor taking the default <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>. </p>

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8cc_source.html#l00235">235</a> of file <a class="el" href="RepoProvideFile_8cc_source.html">RepoProvideFile.cc</a>.</p>

</div>
</div>
<a id="a37996b65973e56c66860afa9e18966d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37996b65973e56c66860afa9e18966d3">&#9670;&nbsp;</a></span>~RepoMediaAccess()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zypp::repo::RepoMediaAccess::~RepoMediaAccess </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8cc_source.html#l00239">239</a> of file <a class="el" href="RepoProvideFile_8cc_source.html">RepoProvideFile.cc</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="acd522c2f7d27db8e9d50269b61e7bc54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd522c2f7d27db8e9d50269b61e7bc54">&#9670;&nbsp;</a></span>provideFile() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacezypp.html#a5fcd6472a3b41932c690d08b57443a1c">ManagedFile</a> zypp::repo::RepoMediaAccess::provideFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a>&#160;</td>
          <td class="paramname"><em>repo_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> &amp;&#160;</td>
          <td class="paramname"><em>loc_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;&#160;</td>
          <td class="paramname"><em>policy_r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provide a file from a <a class="el" href="classzypp_1_1Repository.html">Repository</a>. </p>
<p>Let <em>source_r</em> provide the file described by <em>loc_r</em>. In case <em>loc_r</em> contains a checksum, the file is verified. <em>policy_r</em> provides callback hooks for download progress reporting and behaviour on failed checksum verification.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classzypp_1_1Exception.html" title="Base class for Exception.">Exception</a></td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000059">Todo:</a></b></dt><dd>Investigate why this needs a non-const <a class="el" href="classzypp_1_1Repository.html">Repository</a> as arg. </dd></dl>

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8cc_source.html#l00248">248</a> of file <a class="el" href="RepoProvideFile_8cc_source.html">RepoProvideFile.cc</a>.</p>

</div>
</div>
<a id="a5d10761df6ce1f1ad1af0e29da9e9f6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d10761df6ce1f1ad1af0e29da9e9f6d">&#9670;&nbsp;</a></span>provideFile() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacezypp.html#a5fcd6472a3b41932c690d08b57443a1c">ManagedFile</a> zypp::repo::RepoMediaAccess::provideFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a>&#160;</td>
          <td class="paramname"><em>repo_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> &amp;&#160;</td>
          <td class="paramname"><em>loc_r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8h_source.html#l00081">81</a> of file <a class="el" href="RepoProvideFile_8h_source.html">RepoProvideFile.h</a>.</p>

</div>
</div>
<a id="a0c2e601bbfc469c35265848c1a9850cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c2e601bbfc469c35265848c1a9850cd">&#9670;&nbsp;</a></span>setDefaultPolicy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void zypp::repo::RepoMediaAccess::setDefaultPolicy </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp;&#160;</td>
          <td class="paramname"><em>policy_r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set a new default <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>. </p>

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8cc_source.html#l00242">242</a> of file <a class="el" href="RepoProvideFile_8cc_source.html">RepoProvideFile.cc</a>.</p>

</div>
</div>
<a id="ab6f899fefa36212ca0ee3fbc412b98ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6f899fefa36212ca0ee3fbc412b98ed">&#9670;&nbsp;</a></span>defaultPolicy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a> &amp; zypp::repo::RepoMediaAccess::defaultPolicy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current default <a class="el" href="classzypp_1_1ProvideFilePolicy.html">ProvideFilePolicy</a>. </p>

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8cc_source.html#l00245">245</a> of file <a class="el" href="RepoProvideFile_8cc_source.html">RepoProvideFile.cc</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3780c853a840d8e97a17a3e214bd4b8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3780c853a840d8e97a17a3e214bd4b8a">&#9670;&nbsp;</a></span>_impl</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structzypp_1_1RW__pointer.html">RW_pointer</a>&lt;<a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess_1_1Impl.html">Impl</a>&gt; zypp::repo::RepoMediaAccess::_impl</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="RepoProvideFile_8h_source.html#l00092">92</a> of file <a class="el" href="RepoProvideFile_8h_source.html">RepoProvideFile.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>zypp/repo/<a class="el" href="RepoProvideFile_8h_source.html">RepoProvideFile.h</a></li>
<li>zypp/repo/<a class="el" href="RepoProvideFile_8cc_source.html">RepoProvideFile.cc</a></li>
</ul>
</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="namespacezypp.html">zypp</a></li><li class="navelem"><a class="el" href="namespacezypp_1_1repo.html">repo</a></li><li class="navelem"><a class="el" href="classzypp_1_1repo_1_1RepoMediaAccess.html">RepoMediaAccess</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>