dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
usbdevice.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 #ifndef USBDEVICE_H
27 #define USBDEVICE_H
28 
29 #include <coreplugin/idevice.h>
30 
31 class USBDevice : public Core::IDevice
32 {
33 public:
34  USBDevice();
35 
36  // Our USB-specific device info:
37  QString getPath() const { return path; }
38  int getVendorID() const { return vendorID; }
39  int getProductID() const { return productID; }
40  void setVendorID(int vid) { vendorID = vid; }
41  void setProductID(int pid) { productID = pid; }
42  void setPath(QString p) { path = p; }
43 
44 private:
45  int vendorID;
46  int productID;
47  QString path;
48 };
49 
50 #endif // USBDEVICE_H
void setProductID(int pid)
Definition: usbdevice.h:41
void setVendorID(int vid)
Definition: usbdevice.h:40
void setPath(QString p)
Definition: usbdevice.h:42
int getProductID() const
Definition: usbdevice.h:39
QString getPath() const
Definition: usbdevice.h:37
int getVendorID() const
Definition: usbdevice.h:38