libzypp: zypp/HistoryLog.h Source File

libzypp 17.38.13

HistoryLog.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_TARGET_COMMITLOG_H
13#define ZYPP_TARGET_COMMITLOG_H
14
15#include <iosfwd>
16
17#include <zypp-core/Pathname.h>
18#include <zypp/ResStatus.h>
19
20namespace zypp
21{
22 class PoolItem;
23 class RepoInfo;
24
56 class HistoryLog
57 {
58 HistoryLog( const HistoryLog & );
59 HistoryLog & operator=( const HistoryLog & );
60 public:
66 HistoryLog( const Pathname & rootdir = Pathname() );
67 ~HistoryLog();
68
77 static void setRoot( const Pathname & root );
78
82 static const Pathname & fname();
83
90 void comment( const std::string & comment, bool timestamp = false );
91
93 void stampCommand();
94
98 void install( const PoolItem & pi );
99
103 void remove( const PoolItem & pi );
104
110 void addRepository( const RepoInfo & repo );
111
117 void removeRepository( const RepoInfo & repo );
118
125 void modifyRepository( const RepoInfo & oldrepo, const RepoInfo & newrepo );
126
132 void patchStateChange( const PoolItem & pi, ResStatus::ValidateValue oldstate );
133
134 };
135
136
137} // namespace zypp
138
139#endif // ZYPP_TARGET_COMMITLOG_H
Pathname.h
ResStatus.h
zypp::HistoryLog::~HistoryLog
~HistoryLog()
Definition HistoryLog.cc:158
zypp::HistoryLog::HistoryLog
HistoryLog(const HistoryLog &)
zypp::HistoryLog::stampCommand
void stampCommand()
Log info about the current process.
Definition HistoryLog.cc:222
zypp::HistoryLog::setRoot
static void setRoot(const Pathname &root)
Set new root directory to the default history log file path.
Definition HistoryLog.cc:163
zypp::HistoryLog::modifyRepository
void modifyRepository(const RepoInfo &oldrepo, const RepoInfo &newrepo)
Log certain modifications to a repository.
Definition HistoryLog.cc:312
zypp::HistoryLog::remove
void remove(const PoolItem &pi)
Log removal of a package.
Definition HistoryLog.cc:262
zypp::HistoryLog::addRepository
void addRepository(const RepoInfo &repo)
Log a newly added repository.
Definition HistoryLog.cc:289
zypp::HistoryLog::operator=
HistoryLog & operator=(const HistoryLog &)
zypp::HistoryLog::removeRepository
void removeRepository(const RepoInfo &repo)
Log recently removed repository.
Definition HistoryLog.cc:301
zypp::HistoryLog::fname
static const Pathname & fname()
Get the current log file path.
Definition HistoryLog.cc:181
zypp::HistoryLog::install
void install(const PoolItem &pi)
Log installation (or update) of a package.
Definition HistoryLog.cc:234
zypp::HistoryLog::patchStateChange
void patchStateChange(const PoolItem &pi, ResStatus::ValidateValue oldstate)
Log state changes in patches.
Definition HistoryLog.cc:337
zypp::HistoryLog::comment
void comment(const std::string &comment, bool timestamp=false)
Log a comment (even multiline).
Definition HistoryLog.cc:190
zypp::PoolItem
Combining sat::Solvable and ResStatus.
Definition PoolItem.h:51
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::ResStatus::ValidateValue
ValidateValue
Definition ResStatus.h:95
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zypp::repo
Definition DeltaCandidates.cc:30
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2