merge lp:~mvo/apt/sha512-template to add support for sha512
[ntk/apt.git] / apt-pkg / vendor.h
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 using std::string;
10
11 // A class representing a particular software provider.
12 class __deprecated Vendor
13 {
14 public:
15 struct Fingerprint
16 {
17 string Print;
18 string Description;
19 };
20
21 protected:
22 string VendorID;
23 string Origin;
24 std::map<string, string> Fingerprints;
25
26 public:
27 Vendor(string VendorID, string Origin,
28 std::vector<struct Fingerprint *> *FingerprintList);
29 virtual const string& GetVendorID() const { return VendorID; };
30 virtual const string LookupFingerprint(string Print) const;
31 virtual bool CheckDist(string Dist);
32 virtual ~Vendor(){};
33 };
34
35 #endif