31 #include <QtCore/QtPlugin>
32 #include <QtCore/QMutexLocker>
57 if (RawHidHandle->isOpen())
58 RawHidHandle->
close();
60 delete m_signalFilter;
76 RAW_HID_QXTLOG_DEBUG(
"onDeviceDisconnected()");
93 foreach (
int vendorID, brdVID) {
94 RAW_HID_QXTLOG_DEBUG(
"[rawhidplugin] VendorID type known: ", vendorID);
119 RawHidHandle =
new RawHID(usbDev);
125 Q_UNUSED(deviceName);
127 RAW_HID_QXTLOG_DEBUG(
"Closing the device here");
128 RawHidHandle->
close();
136 return QString(
"Raw HID USB");
141 return QString(
"USB");
149 enablePolling =
false;
157 enablePolling =
true;
162 RawHIDPlugin::RawHIDPlugin()
165 hidConnection = NULL;
168 RawHIDPlugin::~RawHIDPlugin()
174 void RawHIDPlugin::extensionsInitialized()
180 bool RawHIDPlugin::initialize(
const QStringList &arguments, QString *errorString)
183 Q_UNUSED(errorString);
void availableDevChanged(IConnection *)
void onDeviceDisconnected()
QList< int > getKnownVendorIDs()
getKnownVendorIDs Get all USB VendorIDs known by the board manager. This can be used by any plugin wh...
void setName(QString theName)
virtual void closeDevice(const QString &deviceName)
void setProductID(int pid)
void setVendorID(int vid)
virtual void suspendPolling()
QList< USBPortInfo > availableDevices()
void setDisplayName(QString dn)
static ICore * instance()
virtual ~RawHIDConnection()
virtual BoardManager * boardManager() const =0
static USBMonitor * instance()
virtual QString connectionName()
virtual QIODevice * openDevice(Core::IDevice *deviceName)
virtual QString shortName()
virtual void resumePolling()
virtual QList< Core::IDevice * > availableDevices()
void addAutoReleasedObject(QObject *obj)
QString path
Opaque OS-specific path.