]> git.saurik.com Git - apt.git/blame_incremental - apt-pkg/vendor.h
fix test/integration/test-apt-helper
[apt.git] / apt-pkg / vendor.h
... / ...
CommitLineData
1#ifndef PKGLIB_VENDOR_H
2#define PKGLIB_VENDOR_H
3#include <string>
4#include <vector>
5#include <map>
6
7#include <apt-pkg/macros.h>
8
9#ifndef APT_8_CLEANER_HEADERS
10using std::string;
11#endif
12
13// A class representing a particular software provider.
14class APT_DEPRECATED Vendor
15{
16 public:
17 struct Fingerprint
18 {
19 std::string Print;
20 std::string Description;
21 };
22
23 protected:
24 std::string VendorID;
25 std::string Origin;
26 std::map<std::string, std::string> Fingerprints;
27
28 public:
29 Vendor(std::string VendorID, std::string Origin,
30 std::vector<struct Fingerprint *> *FingerprintList);
31 virtual const std::string& GetVendorID() const { return VendorID; };
32 virtual const std::string LookupFingerprint(std::string Print) const;
33 virtual bool CheckDist(std::string Dist);
34 virtual ~Vendor(){};
35};
36
37#endif