dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
Core::IDevice
Definition:
idevice.h:45
USBDevice::setProductID
void setProductID(int pid)
Definition:
usbdevice.h:41
USBDevice::setVendorID
void setVendorID(int vid)
Definition:
usbdevice.h:40
idevice.h
USBDevice
Definition:
usbdevice.h:31
USBDevice::setPath
void setPath(QString p)
Definition:
usbdevice.h:42
USBDevice::getProductID
int getProductID() const
Definition:
usbdevice.h:39
USBDevice::getPath
QString getPath() const
Definition:
usbdevice.h:37
USBDevice::getVendorID
int getVendorID() const
Definition:
usbdevice.h:38
USBDevice::USBDevice
USBDevice()
Definition:
usbdevice.cpp:28
ground
gcs
src
plugins
rawhid
usbdevice.h
Generated by
1.8.6