1 #ifndef PIRKEYSETMETADATA_H
2 #define PIRKEYSETMETADATA_H
4 #include "pirkeynames.h"
5 #include "pirmakenames.h"
6 //#include "pirdevicetypenames.h"
8 #include "pirdeviceinfo.h"
16 class PIRSelectDeviceForm;
19 typedef std::map<PIRKeyName, const char *> KeyCollection;
22 class PIRKeysetMetaData
26 const char *keysetName,
31 PIRKeyName name) const;
33 unsigned int getID() const;
35 PIRMakeName getMake() const;
37 const char *getKeysetName() const;
39 virtual void populateProtocol(
40 QObject *guiObject) = 0;
45 static void populateDevices(
46 PIRSelectDeviceForm *sdf);
49 void addControlledDevice(
52 PIRDeviceTypeName type);
63 // Special helper methods for SIRC keys:
67 unsigned int addressData,
68 unsigned int commandData);
73 unsigned int addressData,
74 unsigned int commandData);
79 unsigned int secondaryAddressData,
80 unsigned int primaryAddressData,
81 unsigned int commandData);
83 // Helper method for Sharp keys:
87 unsigned int addressData,
88 unsigned int commandData);
93 unsigned int addressData,
94 unsigned int commandData);
99 unsigned int addressOne,
100 unsigned int commandOne,
101 unsigned int addressTwo,
102 unsigned int commandTwo);
108 unsigned int addressData,
109 unsigned int commandData);
115 unsigned int addressData,
116 unsigned int commandData);
121 unsigned int firstCommand,
122 unsigned int secondCommand);
127 unsigned int firstCommand,
128 unsigned int secondCommand);
143 PIRProtocol *threadableProtocol;
147 const char *keysetName;
149 static PIRDeviceCollection controlledDevices;
150 // PIRDeviceTypeCollection deviceTypes;
154 #endif // PIRKEYSETMETADATA_H