apt 3.0.3
commandline package manager
statechanges.h
1#include <apt-pkg/cacheset.h>
2#include <apt-pkg/macros.h>
3#include <apt-pkg/pkgcache.h>
4
5#include <memory>
6
7namespace APT
8{
9
13class APT_PUBLIC StateChanges
14{
15public:
16 // getter/setter for the different states
17#define APT_GETTERSETTER(Name) \
18 APT::VersionVector& Name(); \
19 void Name(pkgCache::VerIterator const &Ver)
20 APT_GETTERSETTER(Hold);
21 APT_GETTERSETTER(Unhold);
22 APT_GETTERSETTER(Install);
23 APT_GETTERSETTER(Remove);
24 APT_GETTERSETTER(Purge);
25 APT::VersionVector& Error();
26#undef APT_GETTERSETTER
27
28 // operate on all containers at once
29 void clear();
30 bool empty() const;
31
46 bool Save(bool const DiscardOutput = false);
47
50 StateChanges& operator=(StateChanges&&);
52
53private:
54 class APT_HIDDEN Private;
55 std::unique_ptr<Private> d;
56};
57
58}
Definition statechanges.cc:19
Definition statechanges.h:14
pkgCache - Structure definitions for the cache file