forked from qt-creator/qt-creator
Remove obsolete code.
Reviewed-by: con
This commit is contained in:
@@ -42,33 +42,15 @@ namespace {
|
|||||||
const char * const USBSER = "Services/usbser/Enum";
|
const char * const USBSER = "Services/usbser/Enum";
|
||||||
}
|
}
|
||||||
|
|
||||||
//#ifdef Q_OS_WIN
|
|
||||||
//GUID WceusbshGUID = { 0x25dbce51, 0x6c8f, 0x4a72,
|
|
||||||
// 0x8a,0x6d,0xb5,0x4c,0x2b,0x4f,0xc8,0x35 };
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
SerialDeviceLister::SerialDeviceLister(QObject *parent)
|
SerialDeviceLister::SerialDeviceLister(QObject *parent)
|
||||||
: QObject(parent),
|
: QObject(parent),
|
||||||
m_initialized(false)
|
m_initialized(false)
|
||||||
// , m_devNotifyHandle(0)
|
|
||||||
{
|
{
|
||||||
//#ifdef Q_OS_WIN
|
|
||||||
// // register for events
|
|
||||||
// DEV_BROADCAST_DEVICEINTERFACE NotificationFilter;
|
|
||||||
// ZeroMemory( &NotificationFilter, sizeof(NotificationFilter) );
|
|
||||||
// NotificationFilter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
|
|
||||||
// NotificationFilter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
|
|
||||||
// NotificationFilter.dbcc_classguid = WceusbshGUID;
|
|
||||||
// m_devNotifyHandle = RegisterDeviceNotification(QApplication::topLevelWidgets().at(0)->winId(), &NotificationFilter, DEVICE_NOTIFY_WINDOW_HANDLE);
|
|
||||||
//#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SerialDeviceLister::~SerialDeviceLister()
|
SerialDeviceLister::~SerialDeviceLister()
|
||||||
{
|
{
|
||||||
//#ifdef Q_OS_WIN
|
|
||||||
// if (m_devNotifyHandle)
|
|
||||||
// UnregisterDeviceNotification(m_devNotifyHandle);
|
|
||||||
//#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<SerialDeviceLister::SerialDevice> SerialDeviceLister::serialDevices() const
|
QList<SerialDeviceLister::SerialDevice> SerialDeviceLister::serialDevices() const
|
||||||
|
@@ -69,11 +69,6 @@ private:
|
|||||||
|
|
||||||
mutable bool m_initialized;
|
mutable bool m_initialized;
|
||||||
mutable QList<SerialDevice> m_devices;
|
mutable QList<SerialDevice> m_devices;
|
||||||
|
|
||||||
//#ifdef Q_OS_WIN
|
|
||||||
//private:
|
|
||||||
// HDEVNOTIFY m_devNotifyHandle;
|
|
||||||
//#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
|
Reference in New Issue
Block a user