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 #include <QComboBox>
9 enum PIRDeviceTypeName {
10   Any_Device,
11   TV_Device,
12   VCR_Device,
13   DVD_Device,
14   Audio_Device,
15   Computer_Device
16 };
18 typedef std::set<PIRDeviceTypeName> PIRDeviceTypeCollection;
19 typedef std::map<PIRDeviceTypeName, const char *> PIRDeviceStringCollection;
21 class PIRDeviceTypeMgr
22 {
23 public:
24   PIRDeviceTypeMgr();
26   const char *getDeviceString(
27     PIRDeviceTypeName n);
29   void populateComboBox(
30     QComboBox *cb);
32 private:
33   PIRDeviceStringCollection devices;
34 };
36 #endif // PIRDEVICETYPENAMES_H

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment