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,
33 PIRKeyName name) const;
35 unsigned int getID() const;
37 PIRMakeName getMake() const;
39 const char *getKeysetName() const;
41 virtual void populateProtocol(
42 QObject *guiObject) = 0;
49 static void populateDevices(
50 PIRSelectDeviceForm *sdf);
53 void addControlledDevice(
56 PIRDeviceTypeName type);
67 // Special helper methods for SIRC keys:
71 unsigned int addressData,
72 unsigned int commandData);
77 unsigned int addressData,
78 unsigned int commandData);
83 unsigned int secondaryAddressData,
84 unsigned int primaryAddressData,
85 unsigned int commandData);
87 // Helper method for Sharp keys:
91 unsigned int addressData,
92 unsigned int commandData);
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);
118 unsigned int addressData,
119 unsigned int commandData);
125 unsigned int addressData,
126 unsigned int commandData);
131 unsigned int firstCommand,
132 unsigned int secondCommand);
137 unsigned int firstCommand,
138 unsigned int secondCommand);
153 PIRProtocol *threadableProtocol;
157 const char *keysetName;
159 static PIRDeviceCollection controlledDevices;
160 // PIRDeviceTypeCollection deviceTypes;
164 #endif // PIRKEYSETMETADATA_H