13 #ifndef ZYPP_HISTORYLOGDATA_H_ 14 #define ZYPP_HISTORYLOGDATA_H_ 18 #include <zypp/APIConfig.h> 19 #include <zypp/Date.h> 22 #include <zypp/CheckSum.h> 26 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S" 74 const std::string &
asString(
bool pad =
false)
const;
108 typedef shared_ptr<HistoryLogData>
Ptr;
202 typedef shared_ptr<HistoryLogDataInstall>
Ptr;
203 typedef shared_ptr<const HistoryLogDataInstall>
constPtr;
224 std::string
name()
const;
227 std::string
reqby()
const;
242 typedef shared_ptr<HistoryLogPatchStateChange>
Ptr;
243 typedef shared_ptr<const HistoryLogPatchStateChange>
constPtr;
266 std::string
name()
const;
286 typedef shared_ptr<HistoryLogDataRemove>
Ptr;
287 typedef shared_ptr<const HistoryLogDataRemove>
constPtr;
306 std::string
name()
const;
309 std::string
reqby()
const;
321 typedef shared_ptr<HistoryLogDataRepoAdd>
Ptr;
322 typedef shared_ptr<const HistoryLogDataRepoAdd>
constPtr;
339 std::string
alias()
const;
352 typedef shared_ptr<HistoryLogDataRepoRemove>
Ptr;
353 typedef shared_ptr<const HistoryLogDataRepoRemove>
constPtr;
369 std::string
alias()
const;
381 typedef shared_ptr<HistoryLogDataRepoAliasChange>
Ptr;
382 typedef shared_ptr<const HistoryLogDataRepoAliasChange>
constPtr;
412 typedef shared_ptr<HistoryLogDataRepoUrlChange>
Ptr;
413 typedef shared_ptr<const HistoryLogDataRepoUrlChange>
constPtr;
430 std::string
alias()
const;
444 typedef shared_ptr<HistoryLogDataStampCommand>
Ptr;
445 typedef shared_ptr<const HistoryLogDataStampCommand>
constPtr;
std::string userdata() const
userdata/transactionID
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< const HistoryLogPatchStateChange > constPtr
shared_ptr< HistoryLogDataStampCommand > Ptr
repository providing the package
std::string newAlias() const
repositories new alias
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Patch::SeverityFlag severity() const
shared_ptr< const HistoryLogDataStampCommand > constPtr
SeverityFlag
Possible severity levels for (security) patches.
std::vector< std::string > FieldVector
std::string userdata() const
userdata/transactionID
std::ostream & operator<<(std::ostream &str, const InputStream &obj)
Edition edition() const
package edition
Url url() const
repository url
shared_ptr< const HistoryLogDataRepoAdd > constPtr
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
FieldVector::size_type size_type
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
std::string repoAlias() const
repository providing the package
String related utilities and Regular expression matching.
static const HistoryActionID REMOVE
std::string name() const
package name
static const HistoryActionID NONE
Arch arch() const
package architecture
Edition represents [epoch:]version[-release]
RWCOW_pointer< Impl > _pimpl
Implementation class.
Index
< indices of known fields
A zypp history log line for a removed packge.
static const HistoryActionID REPO_CHANGE_ALIAS
size_type size() const
Number of fields in vector.
static const HistoryActionID INSTALL
std::string alias() const
repository alias
static const HistoryActionID STAMP_COMMAND
const_iterator end() const
Iterator pointing behind the last element in vector.
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
virtual ~HistoryLogData()
Dtor.
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Edition edition() const
package edition
FieldVector::const_iterator const_iterator
Store and operate on date (time_t).
A zypp history log line for an installed packaged.
repository providing the patch
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
requested by (user, pid:appname, or empty (solver))
shared_ptr< HistoryLogDataInstall > Ptr
std::string name() const
package name
Url newUrl() const
repositories new url
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
shared_ptr< HistoryLogDataRepoAdd > Ptr
HistoryActionID action() const
HistoryActionID (or NONE_e if unknown)
const std::string & operator[](size_type idx_r) const
A zypp history log line for a repo url change.
std::string alias() const
repository alias
std::string oldAlias() const
repositories old alias
static const HistoryActionID REPO_REMOVE
HistoryLogDataInstall(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
static const HistoryActionID PATCH_STATE_CHANGE
static const HistoryActionID REPO_CHANGE_URL
std::string userdata() const
userdata/transactionID
shared_ptr< HistoryLogDataRemove > Ptr
A zypp history log line for a removed repository.
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
std::string userdata() const
userdata/transactionID
const std::string & asString(bool pad=false) const
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
A zypp history log line split into fieldsEach valid history log line starts with a date and HistoryAc...
std::string userdata() const
userdata/transactionID
static HistoryActionID::ID parse(const std::string &strval_r)
A zypp history log line for an installed packaged.
requested by (user, pid:appname, or empty (solver))
shared_ptr< HistoryLogPatchStateChange > Ptr
HistoryLogPatchStateChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
A zypp history log line for a repo alias change.
std::string newstate() const
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
const std::string & at(size_type idx_r) const
Access (required) field by number.
static const HistoryActionID REPO_ADD
std::string executedBy() const
executed by user
std::string name() const
package name
CheckSum checksum() const
package checksum
A zypp history log line identifying the program that triggered the following commit.
shared_ptr< const HistoryLogDataInstall > constPtr
the state of the patch after the change
std::string userdata() const
userdata/transactionID
std::string oldstate() const
std::string repoAlias() const
repository providing the package
A zypp history log line for an added repository.
Enumeration of known history actions.
the state of the patch before the change
Arch arch() const
package architecture
bool empty() const
Whether FieldVector is empty.
Arch arch() const
package architecture
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
shared_ptr< const HistoryLogDataRepoRemove > constPtr
Edition edition() const
package edition
Easy-to use interface to the ZYPP dependency resolver.
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< HistoryLogData > Ptr
shared_ptr< const HistoryLogDataRemove > constPtr
std::string command() const
the commandline executed
shared_ptr< const HistoryLogData > constPtr
std::string userdata() const
userdata/transactionID
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
Patch::Category category() const
std::string alias() const
repository alias
std::string userdata() const
userdata/transactionID
shared_ptr< HistoryLogDataRepoRemove > Ptr