libzypp  10.5.0
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 
00025   //
00026   //    CLASS NAME : HistoryLog
00059   class HistoryLog
00060   {
00061     HistoryLog( const HistoryLog & );
00062     HistoryLog & operator=( const HistoryLog & );
00063   public:
00069     HistoryLog( const Pathname & rootdir = Pathname() );
00070     ~HistoryLog();
00071 
00080     static void setRoot( const Pathname & root );
00081 
00085     static const Pathname & fname();
00086 
00093     void comment( const std::string & comment, bool timestamp = false );
00094 
00098     void install( const PoolItem & pi );
00099 
00103     void remove( const PoolItem & pi );
00104 
00110     void addRepository( const RepoInfo & repo );
00111 
00117     void removeRepository( const RepoInfo & repo );
00118 
00125     void modifyRepository( const RepoInfo & oldrepo, const RepoInfo & newrepo );
00126   };
00128 
00129 } // namespace zypp
00130 
00131 #endif // ZYPP_TARGET_COMMITLOG_H