~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kinfocenter/Modules/usbview/usbdb.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 ***************************************************************************/
 
10
 
 
11
#ifndef __USB_DB_H__
 
12
#define __USB_DB_H__
 
13
 
 
14
#include <QMap>
 
15
#include <QString>
 
16
 
 
17
class USBDB {
 
18
public:
 
19
 
 
20
        USBDB();
 
21
 
 
22
        QString vendor(int id);
 
23
        QString device(int vendor, int id);
 
24
 
 
25
        QString cls(int cls);
 
26
        QString subclass(int cls, int sub);
 
27
        QString protocol(int cls, int sub, int prot);
 
28
 
 
29
private:
 
30
 
 
31
        QMap<QString, QString> _classes;
 
32
        QMap<QString, QString> _ids;
 
33
 
 
34
};
 
35
 
 
36
#endif