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[VCR_Device] = "VCR";
8   devices[DVD_Device] = "DVD";
9   devices[Audio_Device] = "Audio";
10   devices[Computer_Device] = "Computer";
11 }
13 const char *PIRDeviceTypeMgr::getDeviceString(
14   PIRDeviceTypeName n)
15 {
16   return devices[n];
17 }
19 void PIRDeviceTypeMgr::populateComboBox(
20   QComboBox *cb)
21 {
22   PIRDeviceStringCollection::const_iterator i = devices.begin();
23   while (i != devices.end())
24   {
25     cb->insertItem(i->first, QString(i->second));
26     ++i;
27   }
28 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment