~ubuntu-branches/ubuntu/warty/kdebase/warty

« back to all changes in this revision

Viewing changes to kcontrol/usbview/usbdb.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-09-16 04:51:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040916045145-9vr63kith3k1cpza
Tags: upstream-3.2.2
ImportĀ upstreamĀ versionĀ 3.2.2

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