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"
15 typedef std::list<PoolQuery> LockList;
16 typedef LockList::const_iterator iterator;
20 static Locks& instance();
24 LockList::size_type size();
29 * applied{Begin,End,Size,Empty}
30 * toBeAdded{Begin,End,Size,Empty}
31 * toBeRemoved{Begin,End,Size,Empty}
36 * locks all solvables which is result of query
38 void addLock( const PoolQuery& query );
43 void addLock( const ui::Selectable& selectable );
46 * unlocks all solvables which is result of query.
49 void removeLock( const PoolQuery& query );
51 void removeLock( const ui::Selectable& selectable );
53 void readAndApply( const Pathname& file = ZConfig::instance().locksFile() );
55 void read( const Pathname& file = ZConfig::instance().locksFile() );
59 void save( const Pathname& file = ZConfig::instance().locksFile() );
68 RW_pointer<Impl, rw_pointer::Scoped<Impl> > _pimpl;