Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kinfocenter / usbview / usbdb.h
blob488b73aba1167f90b742bada11c02aed39406d43
1 /***************************************************************************
2 * Copyright (C) 2001 by Matthias Hoelzer-Kluepfel <mhk@caldera.de> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 ***************************************************************************/
11 #ifndef __USB_DB_H__
12 #define __USB_DB_H__
14 #include <QMap>
15 #include <QString>
17 class USBDB {
18 public:
20 USBDB();
22 QString vendor(int id);
23 QString device(int vendor, int id);
25 QString cls(int cls);
26 QString subclass(int cls, int sub);
27 QString protocol(int cls, int sub, int prot);
29 private:
31 QMap<QString, QString> _classes;
32 QMap<QString, QString> _ids;
36 #endif