/usr/share/doc/libcupt3-doc/html/manager_8hpp_source.html is in libcupt3-doc 2.8.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | <!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Cupt: cupt/download/manager.hpp 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="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 style="padding-left: 0.5em;">
<div id="projectname">Cupt
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_624754ba24599b6ed9aabda614b55fb5.html">cupt</a></li><li class="navelem"><a class="el" href="dir_6dadd32de322c2765e58b8fe83012d7b.html">download</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">manager.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="manager_8hpp.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">* Copyright (C) 2010 by Eugene V. Lyubimkin *</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">* This program is free software; you can redistribute it and/or modify *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">* it under the terms of the GNU General Public License *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* (version 3 or above) as published by the Free Software Foundation. *</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">* This program is distributed in the hope that it will be useful, *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* GNU General Public License for more details. *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">* *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* You should have received a copy of the GNU GPL *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* along with this program; if not, write to the *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">* Free Software Foundation, Inc., *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">**************************************************************************/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef CUPT_DOWNLOAD_MANAGER_SEEN</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#define CUPT_DOWNLOAD_MANAGER_SEEN</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <functional></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="common_8hpp.html">cupt/common.hpp</a>></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <cupt/fwd.hpp></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="uri_8hpp.html">cupt/download/uri.hpp</a>></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacecupt.html">cupt</a> {</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> <span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">class </span>ManagerImpl;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespacecupt_1_1download.html"> 37</a></span> <span class="keyword">namespace </span>download {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classcupt_1_1download_1_1Manager.html"> 40</a></span> <span class="keyword">class </span>CUPT_API <a class="code" href="classcupt_1_1download_1_1Manager.html">Manager</a></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  internal::ManagerImpl* __impl;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html"> 45</a></span>  <span class="keyword">struct </span><a class="code" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html">ExtendedUri</a></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#ae1b40c8eebabec33c168cdee93575ee5"> 47</a></span>  <a class="code" href="classcupt_1_1download_1_1Uri.html">Uri</a> <a class="code" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#ae1b40c8eebabec33c168cdee93575ee5">uri</a>; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a5d80d7c121116950fd1602d6a9cd482d"> 48</a></span>  <span class="keywordtype">string</span> <a class="code" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a5d80d7c121116950fd1602d6a9cd482d">shortAlias</a>; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a6de2224456c2e430e76483693178f959"> 49</a></span>  <span class="keywordtype">string</span> <a class="code" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a6de2224456c2e430e76483693178f959">longAlias</a>; </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a574c14f892c469cda689b3c8ccc71d9f"> 57</a></span>  <a class="code" href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a574c14f892c469cda689b3c8ccc71d9f">ExtendedUri</a>(<span class="keyword">const</span> <a class="code" href="classcupt_1_1download_1_1Uri.html">Uri</a>& uri_, <span class="keyword">const</span> <span class="keywordtype">string</span>& shortAlias_, <span class="keyword">const</span> <span class="keywordtype">string</span>& longAlias_)</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  : uri(uri_), shortAlias(shortAlias_), longAlias(longAlias_)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {}</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  };</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html"> 62</a></span>  <span class="keyword">struct </span><a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html">DownloadEntity</a></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#abc8efde013815de86b7b3a61708635e1"> 64</a></span>  vector< ExtendedUri > <a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#abc8efde013815de86b7b3a61708635e1">extendedUris</a>; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a1eb87a641312b289d29a005f192c09ac"> 65</a></span>  <span class="keywordtype">string</span> <a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a1eb87a641312b289d29a005f192c09ac">targetPath</a>; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#acb740414c766f8f72f78226700b0a3b4"> 66</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#acb740414c766f8f72f78226700b0a3b4">size</a>; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a45873183cb9c6f23d4060f5eac7bd0f2"> 73</a></span>  std::function< string () > <a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a45873183cb9c6f23d4060f5eac7bd0f2">postAction</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a1aa7d8c16817b0019a4c7334ac28cdbc"> 74</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a1aa7d8c16817b0019a4c7334ac28cdbc">optional</a>; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html">DownloadEntity</a>();</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  };</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classcupt_1_1download_1_1Manager.html">Manager</a>(<span class="keyword">const</span> shared_ptr< const Config >& config, <span class="keyword">const</span> shared_ptr< Progress >& progress);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  ~<a class="code" href="classcupt_1_1download_1_1Manager.html">Manager</a>();</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> </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">string</span> download(<span class="keyword">const</span> vector< DownloadEntity >& entities);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> };</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> }</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="ttc" id="classcupt_1_1download_1_1Uri_html"><div class="ttname"><a href="classcupt_1_1download_1_1Uri.html">cupt::download::Uri</a></div><div class="ttdoc">uniform resource indentifier, "download path" </div><div class="ttdef"><b>Definition:</b> uri.hpp:37</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1DownloadEntity_html"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html">cupt::download::Manager::DownloadEntity</a></div><div class="ttdoc">downloadable element </div><div class="ttdef"><b>Definition:</b> manager.hpp:62</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1ExtendedUri_html_a5d80d7c121116950fd1602d6a9cd482d"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a5d80d7c121116950fd1602d6a9cd482d">cupt::download::Manager::ExtendedUri::shortAlias</a></div><div class="ttdeci">string shortAlias</div><div class="ttdoc">short alias </div><div class="ttdef"><b>Definition:</b> manager.hpp:48</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1DownloadEntity_html_acb740414c766f8f72f78226700b0a3b4"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#acb740414c766f8f72f78226700b0a3b4">cupt::download::Manager::DownloadEntity::size</a></div><div class="ttdeci">size_t size</div><div class="ttdef"><b>Definition:</b> manager.hpp:66</div></div>
<div class="ttc" id="namespacecupt_html"><div class="ttname"><a href="namespacecupt.html">cupt</a></div><div class="ttdef"><b>Definition:</b> binarypackage.hpp:26</div></div>
<div class="ttc" id="common_8hpp_html"><div class="ttname"><a href="common_8hpp.html">common.hpp</a></div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1DownloadEntity_html_a45873183cb9c6f23d4060f5eac7bd0f2"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a45873183cb9c6f23d4060f5eac7bd0f2">cupt::download::Manager::DownloadEntity::postAction</a></div><div class="ttdeci">std::function< string() > postAction</div><div class="ttdoc">post-download callback </div><div class="ttdef"><b>Definition:</b> manager.hpp:73</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1ExtendedUri_html_a574c14f892c469cda689b3c8ccc71d9f"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a574c14f892c469cda689b3c8ccc71d9f">cupt::download::Manager::ExtendedUri::ExtendedUri</a></div><div class="ttdeci">ExtendedUri(const Uri &uri_, const string &shortAlias_, const string &longAlias_)</div><div class="ttdoc">trivial constructor </div><div class="ttdef"><b>Definition:</b> manager.hpp:57</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1DownloadEntity_html_abc8efde013815de86b7b3a61708635e1"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#abc8efde013815de86b7b3a61708635e1">cupt::download::Manager::DownloadEntity::extendedUris</a></div><div class="ttdeci">vector< ExtendedUri > extendedUris</div><div class="ttdoc">list of alternative uris </div><div class="ttdef"><b>Definition:</b> manager.hpp:64</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1ExtendedUri_html"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html">cupt::download::Manager::ExtendedUri</a></div><div class="ttdoc">uri with aliases </div><div class="ttdef"><b>Definition:</b> manager.hpp:45</div></div>
<div class="ttc" id="classcupt_1_1download_1_1Manager_html"><div class="ttname"><a href="classcupt_1_1download_1_1Manager.html">cupt::download::Manager</a></div><div class="ttdoc">performs downloads </div><div class="ttdef"><b>Definition:</b> manager.hpp:40</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1DownloadEntity_html_a1aa7d8c16817b0019a4c7334ac28cdbc"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a1aa7d8c16817b0019a4c7334ac28cdbc">cupt::download::Manager::DownloadEntity::optional</a></div><div class="ttdeci">bool optional</div><div class="ttdoc">true if failure to download this is not an error </div><div class="ttdef"><b>Definition:</b> manager.hpp:74</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1DownloadEntity_html_a1eb87a641312b289d29a005f192c09ac"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1DownloadEntity.html#a1eb87a641312b289d29a005f192c09ac">cupt::download::Manager::DownloadEntity::targetPath</a></div><div class="ttdeci">string targetPath</div><div class="ttdoc">path where to place downloaded file </div><div class="ttdef"><b>Definition:</b> manager.hpp:65</div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1ExtendedUri_html_ae1b40c8eebabec33c168cdee93575ee5"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#ae1b40c8eebabec33c168cdee93575ee5">cupt::download::Manager::ExtendedUri::uri</a></div><div class="ttdeci">Uri uri</div><div class="ttdoc">uri </div><div class="ttdef"><b>Definition:</b> manager.hpp:47</div></div>
<div class="ttc" id="uri_8hpp_html"><div class="ttname"><a href="uri_8hpp.html">uri.hpp</a></div></div>
<div class="ttc" id="structcupt_1_1download_1_1Manager_1_1ExtendedUri_html_a6de2224456c2e430e76483693178f959"><div class="ttname"><a href="structcupt_1_1download_1_1Manager_1_1ExtendedUri.html#a6de2224456c2e430e76483693178f959">cupt::download::Manager::ExtendedUri::longAlias</a></div><div class="ttdeci">string longAlias</div><div class="ttdoc">long alias (full description) </div><div class="ttdef"><b>Definition:</b> manager.hpp:49</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 19 2014 18:02:59 for Cupt by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
|