summaryrefslogtreecommitdiff
path: root/apt-pkg/vendor.h
blob: 9b157378cc47d63c2d4f8fe269ecc7cb27fb0810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef PKGLIB_VENDOR_H
#define PKGLIB_VENDOR_H
#include <string>
#include <vector>
#include <map>

#include <apt-pkg/macros.h>

// A class representing a particular software provider.
class __deprecated Vendor
{
   public:
   struct Fingerprint
   {
      std::string Print;
      std::string Description;
   };

   protected:
   std::string VendorID;
   std::string Origin;
   std::map<std::string, std::string> Fingerprints;

   public:
   Vendor(std::string VendorID, std::string Origin,
          std::vector<struct Fingerprint *> *FingerprintList);
   virtual const std::string& GetVendorID() const { return VendorID; };
   virtual const std::string LookupFingerprint(std::string Print) const;
   virtual bool CheckDist(std::string Dist);
   virtual ~Vendor(){};
};

#endif