libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libzypp
Welcome to libzypp
Code Pitfalls - Frequently made mistakes
Code Snippets
Environment Variables
Testing for provided features.
Notes on revisions
Extending ZYpp: Plugins and Hooks
Services
Solver - Vendor protection
Writing and tunning testcases
Libzypp and threads
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
zypp
base
media
misc
parser
pool
repo
sat
solver
target
thread
ui
url
ws
zypp_detail
APIConfig.h
Arch.cc
Arch.h
AutoDispose.h
Bit.h
ByteCount.cc
ByteCount.h
Callback.h
Capabilities.cc
Capabilities.h
Capability.cc
Capability.h
CapMatch.cc
CapMatch.h
Changelog.cc
Changelog.h
CheckSum.cc
CheckSum.h
CountryCode.cc
CountryCode.h
Date.cc
Date.h
Dep.cc
Dep.h
Digest.cc
Digest.h
DiskUsage.cc
DiskUsage.h
DiskUsageCounter.cc
DiskUsageCounter.h
DownloadMode.cc
DownloadMode.h
Edition.cc
Edition.h
ExternalProgram.cc
ExternalProgram.h
Fetcher.cc
Fetcher.h
FileChecker.cc
FileChecker.h
Filter.h
Glob.cc
Glob.h
HistoryLog.cc
HistoryLog.h
HistoryLogData.cc
HistoryLogData.h
IdString.cc
IdString.h
IdStringType.h
InstanceId.cc
InstanceId.h
KeyContext.h
KeyRing.cc
KeyRing.h
KVMap.h
LanguageCode.cc
LanguageCode.h
Locale.cc
Locale.h
Locks.cc
Locks.h
ManagedFile.h
MediaProducts.cc
MediaProducts.h
MediaSetAccess.cc
MediaSetAccess.h
Misc.h
OnMediaLocation.cc
OnMediaLocation.h
Package.cc
Package.h
PackageKeyword.h
Patch.cc
Patch.h
PathInfo.cc
PathInfo.h
Pathname.cc
Pathname.h
Pattern.cc
Pattern.h
PluginFrame.cc
PluginFrame.h
PluginFrameException.cc
PluginFrameException.h
PluginScript.cc
PluginScript.h
PluginScriptException.cc
PluginScriptException.h
PoolItem.cc
PoolItem.h
PoolItemBest.cc
PoolItemBest.h
PoolQuery.cc
PoolQuery.h
PoolQueryResult.cc
PoolQueryResult.h
PoolQueryUtil.tcc
ProblemSolution.cc
ProblemSolution.h
ProblemTypes.h
Product.cc
Product.h
ProgressData.cc
ProgressData.h
ProvideFilePolicy.cc
ProvideFilePolicy.h
PublicKey.cc
PublicKey.h
Range.cc
Range.h
Rel.cc
Rel.h
RelCompare.h
RepoInfo.cc
RepoInfo.h
RepoManager.cc
RepoManager.h
Repository.cc
Repository.h
RepoStatus.cc
RepoStatus.h
ResFilters.h
ResKind.cc
ResKind.h
ResObject.cc
ResObject.h
ResObjects.h
Resolvable.cc
Resolvable.h
Resolver.cc
Resolver.h
ResolverProblem.cc
ResolverProblem.h
ResPool.cc
ResPool.h
ResPoolProxy.cc
ResPoolProxy.h
ResStatus.cc
ResStatus.h
ResTraits.h
ServiceInfo.cc
ServiceInfo.h
Signature.cc
Signature.h
SrcPackage.cc
SrcPackage.h
SysContent.cc
SysContent.h
Target.cc
Target.h
TmpPath.cc
TmpPath.h
TriBool.h
Url.cc
Url.h
Vendor.h
VendorAttr.cc
VendorAttr.h
VendorSupportOptions.cc
VendorSupportOptions.h
ZConfig.cc
ZConfig.h
ZYpp.cc
ZYpp.h
ZYppCallbacks.h
ZYppCommit.h
ZYppCommitPolicy.cc
ZYppCommitPolicy.h
ZYppCommitResult.cc
ZYppCommitResult.h
ZYppFactory.cc
ZYppFactory.h
File Members
Fetcher.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_FETCHER_H
13
#define ZYPP_FETCHER_H
14
15
#include <iosfwd>
16
#include <list>
17
18
#include "
zypp/base/Flags.h
"
19
#include "
zypp/base/PtrTypes.h
"
20
#include "
zypp/Pathname.h
"
21
#include "
zypp/Url.h
"
22
#include "
zypp/OnMediaLocation.h
"
23
#include "
zypp/Digest.h
"
24
#include "
zypp/MediaSetAccess.h
"
25
#include "
zypp/FileChecker.h
"
26
#include "
zypp/ProgressData.h
"
27
29
namespace
zypp
30
{
31
105
class
Fetcher
106
{
107
friend
std::ostream &
operator<<
( std::ostream & str,
108
const
Fetcher
& obj );
109
public
:
111
class
Impl
;
112
public
:
113
117
enum
Option
118
{
123
AutoAddContentFileIndexes
= 0x0001,
128
AutoAddChecksumsIndexes
= 0x0002,
133
AutoAddIndexes
=
AutoAddContentFileIndexes
|
AutoAddChecksumsIndexes
,
134
};
135
ZYPP_DECLARE_FLAGS
(Options,
Option
);
136
138
Fetcher
();
140
virtual
~Fetcher
();
141
142
public
:
143
148
void
setOptions
( Options
options
);
149
154
Options
options
()
const
;
155
180
void
addIndex
(
const
OnMediaLocation
&resource );
181
187
void
enqueue
(
const
OnMediaLocation
&resource,
188
const
FileChecker
&checker =
FileChecker
() );
189
207
void
enqueueDigested
(
const
OnMediaLocation
&resource,
208
const
FileChecker
&checker =
FileChecker
(),
const
Pathname &deltafile = Pathname());
209
210
250
void
enqueueDir
(
const
OnMediaLocation
&resource,
251
bool
recursive =
false
,
252
const
FileChecker
&checker =
FileChecker
() );
253
294
void
enqueueDigestedDir
(
const
OnMediaLocation
&resource,
295
bool
recursive =
false
,
296
const
FileChecker
&checker =
FileChecker
() );
297
302
void
addCachePath
(
const
Pathname &cache_dir );
303
308
void
reset
();
309
319
void
start
(
const
Pathname &dest_dir,
320
MediaSetAccess
&media,
321
const
ProgressData::ReceiverFnc
& progress =
ProgressData::ReceiverFnc
() );
322
323
private
:
325
RWCOW_pointer<Impl>
_pimpl
;
326
};
328
ZYPP_DECLARE_OPERATORS_FOR_FLAGS
(Fetcher::Options);
329
331
std::ostream &
operator<<
( std::ostream & str,
const
Fetcher
& obj );
332
334
}
// namespace zypp
336
#endif // ZYPP_FETCHER_H
zypp
Fetcher.h
Generated by
1.8.1