Maintenance plus Initial Website
[pierogi] / pirmakenames.h
1 #ifndef PIRMAKENAMES_H
2 #define PIRMAKENAMES_H
3
4 #include <QComboBox>
5 #include <map>
6
7 // The list of brands currently known by Pierogi:
8 enum PIRMakeName{
9   Any_Make,
10   Apple_Make,
11   Ei_Make,
12   GoldStar_Make,
13   Hauppauge_Make,
14   LG_Make,
15   Nokia_Make,
16   Panasonic_Make,
17   Samsung_Make,
18   Sanyo_Make,
19   Sharp_Make,
20   Sony_Make,
21   Toshiba_Make,
22   Zenith_Make
23 };
24
25
26 // An object of convenience:
27
28 typedef std::map<PIRMakeName, const char *> MakeCollection;
29
30 class PIRMakeMgr
31 {
32 public:
33   PIRMakeMgr();
34
35   const char *getMakeString(
36     PIRMakeName n);
37
38   void populateComboBox(
39     QComboBox *cb);
40
41 private:
42   MakeCollection makes;
43 };
44
45 #endif // PIRMAKENAMES_H