libzypp 17.37.17
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/Pathname.h>
18#include <zypp/ResStatus.h>
19
20namespace zypp
21{
22 class PoolItem;
23 class RepoInfo;
24
57 {
60 public:
66 HistoryLog( const Pathname & rootdir = Pathname() );
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
HistoryLog(const HistoryLog &)
void stampCommand()
Log info about the current process.
static void setRoot(const Pathname &root)
Set new root directory to the default history log file path.
void modifyRepository(const RepoInfo &oldrepo, const RepoInfo &newrepo)
Log certain modifications to a repository.
void remove(const PoolItem &pi)
Log removal of a package.
void addRepository(const RepoInfo &repo)
Log a newly added repository.
HistoryLog & operator=(const HistoryLog &)
void removeRepository(const RepoInfo &repo)
Log recently removed repository.
static const Pathname & fname()
Get the current log file path.
void install(const PoolItem &pi)
Log installation (or update) of a package.
void patchStateChange(const PoolItem &pi, ResStatus::ValidateValue oldstate)
Log state changes in patches.
void comment(const std::string &comment, bool timestamp=false)
Log a comment (even multiline).
Combining sat::Solvable and ResStatus.
Definition PoolItem.h:51
What is known about a repository.
Definition RepoInfo.h:72
Easy-to use interface to the ZYPP dependency resolver.