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

« back to all changes in this revision

Viewing changes to kinfocenter/Modules/usbview/kcmusb.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 _KCMUSB_H
 
12
#define _KCMUSB_H
 
13
 
 
14
#include <QMap>
 
15
 
 
16
#include <kcmodule.h>
 
17
 
 
18
class QTreeWidget;
 
19
class QTreeWidgetItem;
 
20
class QTextEdit;
 
21
 
 
22
class USBViewer : public KCModule {
 
23
Q_OBJECT
 
24
 
 
25
public:
 
26
 
 
27
        explicit USBViewer(QWidget *parent = 0L, const QVariantList &list=QVariantList());
 
28
 
 
29
        void load();
 
30
 
 
31
protected Q_SLOTS:
 
32
 
 
33
        void selectionChanged(QTreeWidgetItem *item);
 
34
        void refresh();
 
35
 
 
36
private:
 
37
 
 
38
        QMap<int, QTreeWidgetItem*> _items;
 
39
        QTreeWidget *_devices;
 
40
        QTextEdit *_details;
 
41
};
 
42
 
 
43
#endif