18 #ifndef CUPT_CACHE_VERSION_SEEN
19 #define CUPT_CACHE_VERSION_SEEN
26 #include <cupt/fwd.hpp>
39 struct CUPT_API Version
57 enum Type { Required, Important, Standard, Optional, Extra };
59 static const string strings[];
68 vector< Source > sources;
74 map< string, string >* others;
86 virtual bool areHashesEqual(
const Version* other)
const = 0;
89 bool isVerified()
const;
91 vector< DownloadRecord > getDownloadInfo()
const;
97 bool operator<(
const Version&)
const;
100 static bool parseRelations;
102 static bool parseInfoOnly;
104 static bool parseOthers;
107 string getCodenameAndComponentString(
const string&)
const;