This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
/* |
| 2 |
<Simple class representing an USB device with needed information: header file> |
| 3 |
Copyright (C) <2011> <Lisa "shainer" Vitolo> |
| 4 |
|
| 5 |
This library is free software; you can redistribute it and/or |
| 6 |
modify it under the terms of the GNU Lesser General Public |
| 7 |
License as published by the Free Software Foundation; either |
| 8 |
version 2.1 of the License, or (at your option) any later version. |
| 9 |
|
| 10 |
This library is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
Lesser General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU Lesser General Public |
| 16 |
License along with this library; if not, write to the Free Software |
| 17 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
#ifndef USBDEVICE_H |
| 22 |
#define USBDEVICE_H |
| 23 |
|
| 24 |
#include <QtGui> |
| 25 |
|
| 26 |
#include <solid/device.h> |
| 27 |
#include <solid/storagevolume.h> |
| 28 |
|
| 29 |
using namespace Solid; |
| 30 |
|
| 31 |
class USBDevice |
| 32 |
{ |
| 33 |
|
| 34 |
public: |
| 35 |
USBDevice(); |
| 36 |
USBDevice(QString, Device); |
| 37 |
|
| 38 |
/* Except from path, this information are extracted from the Solid::Device object */ |
| 39 |
QString getPath(); |
| 40 |
QString getVendor(); |
| 41 |
int getCapacity(); |
| 42 |
QString getFilesystem(); |
| 43 |
Device getDevice(); |
| 44 |
|
| 45 |
private: |
| 46 |
QString path; |
| 47 |
Device device; |
| 48 |
}; |
| 49 |
|
| 50 |
#endif // USBDEVICE_H |