libzypp 17.35.13
onmedialocation.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
11#ifndef ZYPP_SOURCE_ONMEDIALOCATION_H
12#define ZYPP_SOURCE_ONMEDIALOCATION_H
13
14#include <iosfwd>
15
17#include <zypp-core/Pathname.h>
18#include <zypp-core/ByteCount.h>
19#include <zypp-core/CheckSum.h>
20
22namespace zypp
23{
37 {
38 friend std::ostream & operator<<( std::ostream & str, const OnMediaLocation & obj );
39 friend std::ostream & dumpOn( std::ostream & str, const OnMediaLocation & obj );
40
41 public:
44
46 OnMediaLocation( Pathname filename_r, unsigned medianr_r = 1 );
47
50
51 public:
53 const Pathname & filename() const;
54
56 unsigned medianr() const;
57
58
60 OnMediaLocation & setLocation( Pathname filename_r, unsigned medianr_r = 1 );
61
63 OnMediaLocation & unsetLocation();
64
65
67 OnMediaLocation & changeFilename( Pathname filename_r );
68
70 OnMediaLocation & changeMedianr( unsigned medianr_r );
71
73 OnMediaLocation & prependPath( const Pathname & prefix_r );
74
75 public:
80 bool optional() const;
82 OnMediaLocation & setOptional( bool val );
83
84 public:
89 const ByteCount & downloadSize() const;
91 OnMediaLocation & setDownloadSize( ByteCount val_r );
92
94 const CheckSum & checksum() const;
96 OnMediaLocation & setChecksum( CheckSum val_r );
97
98 public:
100 const ByteCount & openSize() const;
102 OnMediaLocation & setOpenSize( ByteCount val_r );
103
105 const CheckSum & openChecksum() const;
107 OnMediaLocation & setOpenChecksum( CheckSum val_r );
108
109 public:
111 const ByteCount & headerSize() const;
113 OnMediaLocation & setHeaderSize( ByteCount val_r );
114
116 const CheckSum & headerChecksum() const;
118 OnMediaLocation & setHeaderChecksum( CheckSum val_r );
119
121 const Pathname & deltafile() const;
123 OnMediaLocation & setDeltafile( Pathname path );
124
125
126 public:
127 class Impl;
128 private:
130 };
131
133 std::ostream & operator<<( std::ostream & str, const OnMediaLocation & obj );
134
136 std::ostream & dumOn( std::ostream & str, const OnMediaLocation & obj );
137
138} // namespace zypp
140#endif // ZYPP_SOURCE_ONMEDIALOCATION_H
Pathname deltafile
Store and operate with byte count.
Definition ByteCount.h:32
OnMediaLocation implementation.
Describes a resource file located on a medium.
std::ostream & dumOn(std::ostream &str, const OnMediaLocation &obj)
Verbose stream output.
RWCOW_pointer< Impl > _pimpl
Implementation class.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
RW_pointer supporting 'copy on write' functionality.
Definition PtrTypes.h:469