Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #ifndef PIRDEVICETYPENAMES_H
2 #define PIRDEVICETYPENAMES_H
4 #include <set>
5 #include <map>
7 class QComboBox;
9 enum PIRDeviceTypeName {
10   Any_Device,
11   TV_Device,
12   Sat_Device,
13   VCR_Device,
14   DVD_Device,
15   Audio_Device,
16   Computer_Device,
17   Other_Device
18 };
20 typedef std::set<PIRDeviceTypeName> PIRDeviceTypeCollection;
21 typedef std::map<PIRDeviceTypeName, const char *> PIRDeviceStringCollection;
23 class PIRDeviceTypeMgr
24 {
25 public:
26   PIRDeviceTypeMgr();
28   const char *getDeviceString(
29     PIRDeviceTypeName n);
31   void populateComboBox(
32     QComboBox *cb);
34 private:
35   PIRDeviceStringCollection devices;
36 };
38 #endif // PIRDEVICETYPENAMES_H

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment