Initial
This commit is contained in:
51
dvcap/DeviceNotify.hpp
Normal file
51
dvcap/DeviceNotify.hpp
Normal 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
|
||||
Reference in New Issue
Block a user