1 #ifndef PIRKEYSETMETADATA_H
2 #define PIRKEYSETMETADATA_H
4 #include "pirkeynames.h"
5 #include "pirmakenames.h"
6 #include "pirdevicetypenames.h"
13 class PIRKeysetWidgetItem;
16 typedef std::map<PIRKeyName, const char *> KeyCollection;
32 PIRDeviceTypeName type;
35 typedef std::list<DeviceInfo> DeviceCollection;
37 class PIRKeysetMetaData
41 const char *keysetName,
46 PIRKeyName name) const;
48 unsigned int getID() const;
50 PIRMakeName getMake() const;
52 const char *getKeysetName() const;
54 void moveProtocolToThread(
57 void populateDeviceTypes(
58 PIRKeysetWidgetItem *kwi) const;
61 void addControlledDevice(
64 PIRDeviceTypeName type);
75 // Special helper methods for SIRC keys:
79 unsigned int addressData,
80 unsigned int commandData);
85 unsigned int addressData,
86 unsigned int commandData);
91 unsigned int secondaryAddressData,
92 unsigned int primaryAddressData,
93 unsigned int commandData);
95 // Helper method for Sharp keys:
99 unsigned int addressData,
100 unsigned int commandData);
105 unsigned int addressData,
106 unsigned int commandData);
111 unsigned int addressOne,
112 unsigned int commandOne,
113 unsigned int addressTwo,
114 unsigned int commandTwo);
120 unsigned int addressData,
121 unsigned int commandData);
127 unsigned int addressData,
128 unsigned int commandData);
133 unsigned int firstCommand,
134 unsigned int secondCommand);
146 DeviceCollection controlledDevices;
148 PIRProtocol *threadableProtocol;
154 const char *keysetName;
156 PIRDeviceTypeCollection deviceTypes;
162 #endif // PIRKEYSETMETADATA_H