|
Herqq
|
A protocol class for creating HServerDevice and HServerService instances. More...
#include <HDeviceModelCreator>
Public Member Functions | |
| HDeviceModelCreator () | |
| virtual | ~HDeviceModelCreator () |
| virtual HServerDevice * | createDevice (const HDeviceInfo &info) const |
| virtual HServerService * | createService (const HServiceInfo &serviceInfo, const HDeviceInfo &parentDeviceInfo) const =0 |
| virtual HDeviceModelCreator * | clone () const |
A protocol class for creating HServerDevice and HServerService instances.
The primary purpose of this protocol class is to build instances of the HUPnP's Device Model at server-side. If you wish to host a device in an HDeviceHost you have to derive from this class and override its abstract methods.
Creates a new instance.
| ~HDeviceModelCreator | ( | ) | [virtual] |
Destroys the instance.
| HServerDevice * createDevice | ( | const HDeviceInfo & | info | ) | const [virtual] |
Creates a device matching the provided device information.
| info | specifies information of the device type the creator is asked to create. |
null in case the creator does not recognize the specified device type.| virtual HServerService* createService | ( | const HServiceInfo & | serviceInfo, |
| const HDeviceInfo & | parentDeviceInfo | ||
| ) | const [pure virtual] |
Creates a service matching the provided service information.
| serviceInfo | specifies information of the service type the creator is asked to create. |
| parentDeviceInfo | specifies information about the parent UPnP device that contains this service. |
null in case the creator does not recognize the specified service type.| HDeviceModelCreator * clone | ( | ) | const [virtual] |
Returns a deep copy of the instance.
Reimplemented from HClonable.
1.7.3