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 "protocols/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,
44 PIRKeyName name) const;
46 unsigned int getID() const;
48 PIRMakeName getMake() const;
50 const char *getKeysetName() const;
52 void moveProtocolToThread(
55 void populateDeviceTypes(
56 PIRKeysetWidgetItem *kwi) const;
59 void addControlledDevice(
62 PIRDeviceTypeName type);
73 // Special helper methods for SIRC keys:
77 unsigned int addressData,
78 unsigned int commandData);
83 unsigned int addressData,
84 unsigned int commandData);
89 unsigned int secondaryAddressData,
90 unsigned int primaryAddressData,
91 unsigned int commandData);
93 // Helper method for Sharp keys:
97 unsigned int addressData,
98 unsigned int commandData);
103 unsigned int addressData,
104 unsigned int commandData);
109 unsigned int addressOne,
110 unsigned int commandOne,
111 unsigned int addressTwo,
112 unsigned int commandTwo);
124 DeviceCollection controlledDevices;
126 PIRProtocol *threadableProtocol;
132 const char *keysetName;
134 PIRDeviceTypeCollection deviceTypes;
140 #endif // PIRKEYSETMETADATA_H