52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
#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
|