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 unsigned int getCarrierFrequency() const;
43 void setCarrierFrequency(
44 unsigned int carrierFrequency);
46 unsigned int getDutyCycle() const;
49 unsigned int dutyCycle);
51 virtual void populateProtocol(
52 QObject *guiObject) = 0;
59 static void populateDevices(
60 PIRSelectDeviceForm *sdf);
63 void addControlledDevice(
66 PIRDeviceTypeName type);
77 // Special helper methods for SIRC keys:
81 unsigned int addressData,
82 unsigned int commandData);
87 unsigned int addressData,
88 unsigned int commandData);
93 unsigned int secondaryAddressData,
94 unsigned int primaryAddressData,
95 unsigned int commandData);
97 // Helper method for Sharp keys:
101 unsigned int addressData,
102 unsigned int commandData);
107 unsigned int addressData,
108 unsigned int commandData);
113 unsigned int addressData,
114 unsigned int commandData);
119 unsigned int addressOne,
120 unsigned int commandOne,
121 unsigned int addressTwo,
122 unsigned int commandTwo);
128 unsigned int addressData,
129 unsigned int commandData);
135 unsigned int addressData,
136 unsigned int commandData);
141 unsigned int firstCommand,
142 unsigned int secondCommand);
147 unsigned int firstCommand,
148 unsigned int secondCommand);
163 PIRProtocol *threadableProtocol;
167 const char *keysetName;
169 static PIRDeviceCollection controlledDevices;
170 // PIRDeviceTypeCollection deviceTypes;
174 #endif // PIRKEYSETMETADATA_H