4 #include "zypp/ResPool.h"
5 #include "zypp/Pathname.h"
6 #include "zypp/PoolQuery.h"
7 #include "zypp/ZConfig.h"
8 #include "zypp/ui/Selectable.h"
17 static Locks& instance();
20 * locks all solvables which is result of query
22 void addLock( const PoolQuery& query );
27 void addLock( const ui::Selectable& selectable );
30 * unlocks all solvables which is result of query.
33 void unlock( const PoolQuery& query );
35 void unlock( const ui::Selectable& selectable );
37 void loadLocks( const Pathname& file = ZConfig::instance().locksFile() );
39 void saveLocks( const Pathname& file = ZConfig::instance().locksFile() );
41 bool existEmptyLocks();
43 void removeEmptyLocks();
48 RW_pointer<Impl, rw_pointer::Scoped<Impl> > _pimpl;