libzypp 9.41.1

HistoryLog.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_TARGET_COMMITLOG_H
00013 #define ZYPP_TARGET_COMMITLOG_H
00014 
00015 #include <iosfwd>
00016 
00017 #include "zypp/Pathname.h"
00018 
00019 namespace zypp
00020 {
00021   class PoolItem;
00022   class RepoInfo;
00023 
00055   class HistoryLog
00056   {
00057     HistoryLog( const HistoryLog & );
00058     HistoryLog & operator=( const HistoryLog & );
00059   public:
00065     HistoryLog( const Pathname & rootdir = Pathname() );
00066     ~HistoryLog();
00067 
00076     static void setRoot( const Pathname & root );
00077 
00081     static const Pathname & fname();
00082 
00089     void comment( const std::string & comment, bool timestamp = false );
00090 
00094     void install( const PoolItem & pi );
00095 
00099     void remove( const PoolItem & pi );
00100 
00106     void addRepository( const RepoInfo & repo );
00107 
00113     void removeRepository( const RepoInfo & repo );
00114 
00121     void modifyRepository( const RepoInfo & oldrepo, const RepoInfo & newrepo );
00122   };
00124 
00125 } // namespace zypp
00126 
00127 #endif // ZYPP_TARGET_COMMITLOG_H