]> git.saurik.com Git - apt.git/blame - apt-pkg/vendor.h
* apt-pkg/acquire.cc:
[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
b3d44315
MV
7
8using std::string;
9
10// A class representing a particular software provider.
11class Vendor
12{
13 public:
14 struct Fingerprint
15 {
16 string Print;
17 string Description;
18 };
19
20 protected:
21 string VendorID;
22 string Origin;
23 std::map<string, string> Fingerprints;
24
25 public:
26 Vendor(string VendorID, string Origin,
27 std::vector<struct Fingerprint *> *FingerprintList);
28 virtual const string& GetVendorID() const { return VendorID; };
29 virtual const string LookupFingerprint(string Print) const;
30 virtual bool CheckDist(string Dist);
31 virtual ~Vendor(){};
32};
33
34#endif