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;
47 static void populateDevices(
48 PIRSelectDeviceForm *sdf);
51 void addControlledDevice(
54 PIRDeviceTypeName type);
65 // Special helper methods for SIRC keys:
69 unsigned int addressData,
70 unsigned int commandData);
75 unsigned int addressData,
76 unsigned int commandData);
81 unsigned int secondaryAddressData,
82 unsigned int primaryAddressData,
83 unsigned int commandData);
85 // Helper method for Sharp keys:
89 unsigned int addressData,
90 unsigned int commandData);
95 unsigned int addressData,
96 unsigned int commandData);
101 unsigned int addressData,
102 unsigned int commandData);
107 unsigned int addressOne,
108 unsigned int commandOne,
109 unsigned int addressTwo,
110 unsigned int commandTwo);
116 unsigned int addressData,
117 unsigned int commandData);
123 unsigned int addressData,
124 unsigned int commandData);
129 unsigned int firstCommand,
130 unsigned int secondCommand);
135 unsigned int firstCommand,
136 unsigned int secondCommand);
151 PIRProtocol *threadableProtocol;
155 const char *keysetName;
157 static PIRDeviceCollection controlledDevices;
158 // PIRDeviceTypeCollection deviceTypes;
162 #endif // PIRKEYSETMETADATA_H