5 #include "zypp/ResPool.h"
6 #include "zypp/Pathname.h"
7 #include "zypp/PoolQuery.h"
8 #include "zypp/ZConfig.h"
9 #include "zypp/ui/Selectable.h"
20 static Locks& instance();
23 * locks all solvables which is result of query
25 void addLock( const PoolQuery& query );
30 void addLock( const ui::Selectable& selectable );
33 * unlocks all solvables which is result of query.
36 void unlock( const PoolQuery& query );
38 void unlock( const ui::Selectable& selectable );
40 void loadLocks( const Pathname& file = ZConfig::instance().locksFile() );
42 void saveLocks( const Pathname& file = ZConfig::instance().locksFile() );
44 bool existEmptyLocks();
46 void removeEmptyLocks();
51 RW_pointer<Impl, rw_pointer::Scoped<Impl> > _pimpl;