This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

51
dvcap/DeviceNotify.hpp Normal file
View File

@@ -0,0 +1,51 @@
#ifndef _DVCAP_DEVICENOTIFICATION_HPP_
#define _DVCAP_DEVICENOTIFICATION_HPP_
#ifndef _COMMON_GUIWINDOW_HPP_
#include <common/guiwnd.hpp>
#endif
class DeviceNotification
{
public:
DeviceNotification();
virtual ~DeviceNotification();
bool registerDeviceNotification(GUIWindow &guiWindow);
void unRegisterDeviceNotification();
bool isOkay(void)const;
private:
DeviceNotification(const DeviceNotification &deviceNotification);
DeviceNotification &operator=(const DeviceNotification &deviceNotification);
void *mhDevNotify;
};
inline
DeviceNotification::DeviceNotification()
: mhDevNotify(0)
{
}
inline
DeviceNotification::~DeviceNotification()
{
unRegisterDeviceNotification();
}
inline
DeviceNotification::DeviceNotification(const DeviceNotification &deviceNotification)
{ // private
*this=deviceNotification;
}
inline
DeviceNotification &DeviceNotification::operator=(const DeviceNotification &deviceNotification)
{ // private
return *this;
}
inline
bool DeviceNotification::isOkay(void)const
{
return mhDevNotify?true:false;
}
#endif