13 #ifndef ZYPP_HISTORYLOGDATA_H_ 14 #define ZYPP_HISTORYLOGDATA_H_ 18 #include <zypp/APIConfig.h> 26 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S" 74 const std::string &
asString(
bool pad =
false)
const;
108 using Ptr = shared_ptr<HistoryLogData>;
202 using Ptr = shared_ptr<HistoryLogDataInstall>;
203 using constPtr = shared_ptr<const HistoryLogDataInstall>;
224 std::string
name()
const;
227 std::string
reqby()
const;
242 using Ptr = shared_ptr<HistoryLogPatchStateChange>;
243 using constPtr = shared_ptr<const HistoryLogPatchStateChange>;
266 std::string
name()
const;
286 using Ptr = shared_ptr<HistoryLogDataRemove>;
287 using constPtr = shared_ptr<const HistoryLogDataRemove>;
306 std::string
name()
const;
309 std::string
reqby()
const;
321 using Ptr = shared_ptr<HistoryLogDataRepoAdd>;
322 using constPtr = shared_ptr<const HistoryLogDataRepoAdd>;
339 std::string
alias()
const;
352 using Ptr = shared_ptr<HistoryLogDataRepoRemove>;
353 using constPtr = shared_ptr<const HistoryLogDataRepoRemove>;
369 std::string
alias()
const;
381 using Ptr = shared_ptr<HistoryLogDataRepoAliasChange>;
382 using constPtr = shared_ptr<const HistoryLogDataRepoAliasChange>;
412 using Ptr = shared_ptr<HistoryLogDataRepoUrlChange>;
413 using constPtr = shared_ptr<const HistoryLogDataRepoUrlChange>;
430 std::string
alias()
const;
444 using Ptr = shared_ptr<HistoryLogDataStampCommand>;
445 using constPtr = shared_ptr<const HistoryLogDataStampCommand>;
std::string userdata() const
userdata/transactionID
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
repository providing the package
std::string newAlias() const
repositories new alias
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Patch::SeverityFlag severity() const
SeverityFlag
Possible severity levels for (security) patches.
std::string userdata() const
userdata/transactionID
Edition edition() const
package edition
Url url() const
repository url
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
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
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
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))
FieldVector::size_type size_type
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Edition edition() const
package edition
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))
std::string name() const
package name
Url newUrl() const
repositories new url
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
shared_ptr< HistoryLogData > Ptr
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
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
std::vector< std::string > FieldVector
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
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))
HistoryLogPatchStateChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
A zypp history log line for a repo alias change.
shared_ptr< const HistoryLogData > constPtr
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.
the state of the patch after the change
std::string userdata() const
userdata/transactionID
FieldVector::const_iterator const_iterator
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.
Edition edition() const
package edition
Easy-to use interface to the ZYPP dependency resolver.
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
std::string command() const
the commandline executed
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