5#include <zypp/Pathname.h>
35 LockList::size_type
size()
const;
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string.
Access to the sat-pools string space.
Singleton class which manipulate with locks file and apply locks on pool.
void removeEmpty()
Call callback for each empty lock.
void apply() const
Applies locks in stable list (locks which is not changed during session).
void merge()
Merges toAdd and ToRemove list to stable list.
void save(const Pathname &file=ZConfig::instance().locksFile())
Merges toAdd and ToRemove list to stable list and save that stable list to file.
const_iterator end() const
void addLock(const PoolQuery &query)
TODO add: toBeAdded{Begin,End,Size,Empty} toBeRemoved{Begin,End,Size,Empty}.
LockList::const_iterator const_iterator
std::list< PoolQuery > LockList
void readAndApply(const Pathname &file=ZConfig::instance().locksFile())
Optimalized version of read and apply.
void removeDuplicates()
Delete all query duplicate in loaded locks.
LockList::size_type size_type
const_iterator begin() const
LockList::size_type size() const
void removeLock(const PoolQuery &query)
unlocks by result of query and add to toRemove.
bool existEmpty() const
Gets true if some lock doesn't lock any object in pool This can happen e.g.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
static Locks & instance()
Gets instance of this class.
void read(const Pathname &file=ZConfig::instance().locksFile())
Read locks from file to list of stable locks (locks which is not changed during session)
static ZConfig & instance()
Singleton ctor.
Easy-to use interface to the ZYPP dependency resolver.
Wrapper for const correct access via Smart pointer types.