Advanced Settings Panel
[pierogi] / pirdeviceinfo.h
1 #ifndef PIRDEVICEINFO_H
2 #define PIRDEVICEINFO_H
3
4 #include "pirmakenames.h"
5 #include "pirdevicetypenames.h"
6
7 #include <map>
8
9 class DeviceInfo
10 {
11 public:
12   DeviceInfo(
13     PIRMakeName ma,
14     const char *mo,
15     PIRDeviceTypeName t)
16   : make(ma),
17     model(mo),
18     type(t)
19   {}
20
21   PIRMakeName make;
22   const char *model;
23   PIRDeviceTypeName type;
24 };
25
26 bool operator< (
27   const DeviceInfo &a,
28   const DeviceInfo &b);
29
30 typedef std::map<DeviceInfo, unsigned int> PIRDeviceCollection;
31
32 typedef std::pair<DeviceInfo, unsigned int> PIRDCPair;
33
34 #endif // PIRDEVICEINFO_H