Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #include "pirdevicetypenames.h"
3 PIRDeviceTypeMgr::PIRDeviceTypeMgr()
4 {
5   devices[Any_Device] = "Any";
6   devices[TV_Device] = "TV";
7   devices[Sat_Device] = "Sat Receiver";
8   devices[VCR_Device] = "VCR";
9   devices[DVD_Device] = "DVD";
10   devices[Audio_Device] = "Audio";
11   devices[Computer_Device] = "Computer";
12   devices[Other_Device] = "Other";
13 }
15 const char *PIRDeviceTypeMgr::getDeviceString(
16   PIRDeviceTypeName n)
17 {
18   return devices[n];
19 }
21 void PIRDeviceTypeMgr::populateComboBox(
22   QComboBox *cb)
23 {
24   PIRDeviceStringCollection::const_iterator i = devices.begin();
25   while (i != devices.end())
26   {
27     cb->insertItem(i->first, QString(i->second));
28     ++i;
29   }
30 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment