1 #ifndef PIRKEYSETMETADATA_H
2 #define PIRKEYSETMETADATA_H
4 #include "pirkeynames.h"
5 #include "pirmakenames.h"
6 #include "pirdevicetypenames.h"
14 class PIRSelectDeviceForm;
17 typedef std::map<PIRKeyName, const char *> KeyCollection;
33 PIRDeviceTypeName type;
36 typedef std::list<DeviceInfo> PIRDeviceCollection;
38 class PIRKeysetMetaData
42 const char *keysetName,
47 PIRKeyName name) const;
49 unsigned int getID() const;
51 PIRMakeName getMake() const;
53 const char *getKeysetName() const;
55 virtual void populateProtocol(
56 QObject *guiObject) = 0;
63 PIRSelectDeviceForm *sdf) const;
66 void addControlledDevice(
69 PIRDeviceTypeName type);
80 // Special helper methods for SIRC keys:
84 unsigned int addressData,
85 unsigned int commandData);
90 unsigned int addressData,
91 unsigned int commandData);
96 unsigned int secondaryAddressData,
97 unsigned int primaryAddressData,
98 unsigned int commandData);
100 // Helper method for Sharp keys:
104 unsigned int addressData,
105 unsigned int commandData);
110 unsigned int addressData,
111 unsigned int commandData);
116 unsigned int addressOne,
117 unsigned int commandOne,
118 unsigned int addressTwo,
119 unsigned int commandTwo);
125 unsigned int addressData,
126 unsigned int commandData);
132 unsigned int addressData,
133 unsigned int commandData);
138 unsigned int firstCommand,
139 unsigned int secondCommand);
154 PIRDeviceCollection controlledDevices;
156 PIRProtocol *threadableProtocol;
160 const char *keysetName;
162 PIRDeviceTypeCollection deviceTypes;
166 #endif // PIRKEYSETMETADATA_H