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 "pirkeysetwidgetitem.h"
3 PIRKeysetWidgetItem::PIRKeysetWidgetItem(
4   QString name,
5   unsigned int i,
6   PIRMakeName m)
7   : QListWidgetItem(name),
8     id(i),
9     make(m)
10 {
11 }
14 void PIRKeysetWidgetItem::addDeviceType(
15   PIRDeviceTypeName dt)
16 {
17   devices.insert(dt);
18 }
21 unsigned int PIRKeysetWidgetItem::getID()
22 {
23   return id;
24 }
27 PIRMakeName PIRKeysetWidgetItem::getMake()
28 {
29   return make;
30 }
33 bool PIRKeysetWidgetItem::supportsDeviceType(
34   PIRDeviceTypeName dt)
35 {
36   return (devices.find(dt) != devices.end());
37 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment