1 #ifndef PIRKEYSETMETADATA_H
2 #define PIRKEYSETMETADATA_H
8 #include "pirkeynames.h"
9 #include "pirmakenames.h"
10 #include "pirdevicetypenames.h"
11 #include "pirkeysetwidgetitem.h"
12 #include "pirprotocol.h"
14 typedef std::map<PIRKeyName, const char *> KeyCollection;
30 PIRDeviceTypeName type;
33 typedef std::list<DeviceInfo> DeviceCollection;
35 class PIRKeysetMetaData
39 const char *keysetName,
48 PIRMakeName getMake();
49 const char *getKeysetName();
51 void moveProtocolToThread(
54 void populateDeviceTypes(
55 PIRKeysetWidgetItem *kwi);
58 void addControlledDevice(
61 PIRDeviceTypeName type);
72 // Special helper methods for SIRC keys:
76 unsigned int addressData,
77 unsigned int commandData);
82 unsigned int addressData,
83 unsigned int commandData);
88 unsigned int secondaryAddressData,
89 unsigned int primaryAddressData,
90 unsigned int commandData);
92 // Helper method for Sharp keys:
96 unsigned int addressData,
97 unsigned int commandData);
109 DeviceCollection controlledDevices;
111 PIRProtocol *threadableProtocol;
117 const char *keysetName;
119 PIRDeviceTypeCollection deviceTypes;
125 #endif // PIRKEYSETMETADATA_H