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 addressData,
100 unsigned int commandData);
105 unsigned int addressOne,
106 unsigned int commandOne,
107 unsigned int addressTwo,
108 unsigned int commandTwo);
114 unsigned int addressData,
115 unsigned int commandData);
121 unsigned int addressData,
122 unsigned int commandData);
127 unsigned int firstCommand,
128 unsigned int secondCommand);
133 unsigned int firstCommand,
134 unsigned int secondCommand);
149 PIRProtocol *threadableProtocol;
153 const char *keysetName;
155 static PIRDeviceCollection controlledDevices;
156 // PIRDeviceTypeCollection deviceTypes;
160 #endif // PIRKEYSETMETADATA_H