]> git.saurik.com Git - apt.git/blame - apt-pkg/vendor.h
fix test/integration/test-apt-helper
[apt.git] / apt-pkg / vendor.h
CommitLineData
b3d44315
MV
1#ifndef PKGLIB_VENDOR_H
2#define PKGLIB_VENDOR_H
3#include <string>
4#include <vector>
5#include <map>
6
82b6682a 7#include <apt-pkg/macros.h>
b3d44315 8
a4f6bdc8
DK
9#ifndef APT_8_CLEANER_HEADERS
10using std::string;
11#endif
12
8f3ba4e8 13// A class representing a particular software provider.
453b82a3 14class APT_DEPRECATED Vendor
b3d44315
MV
15{
16 public:
17 struct Fingerprint
18 {
8f3ba4e8
DK
19 std::string Print;
20 std::string Description;
b3d44315
MV
21 };
22
23 protected:
8f3ba4e8
DK
24 std::string VendorID;
25 std::string Origin;
26 std::map<std::string, std::string> Fingerprints;
b3d44315
MV
27
28 public:
8f3ba4e8 29 Vendor(std::string VendorID, std::string Origin,
b3d44315 30 std::vector<struct Fingerprint *> *FingerprintList);
8f3ba4e8
DK
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);
b3d44315
MV
34 virtual ~Vendor(){};
35};
36
37#endif