2014-11-13 19:30:51 +02:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2001 by Matthias Hoelzer-Kluepfel <mhk@caldera.de> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2015-07-11 18:46:07 +03:00
|
|
|
#ifndef KCMUSB_H
|
|
|
|
#define KCMUSB_H
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
|
|
|
|
#include <kcmodule.h>
|
|
|
|
|
2019-05-05 02:36:36 +00:00
|
|
|
#include <QTreeWidget>
|
|
|
|
#include <QTreeWidgetItem>
|
|
|
|
#include <QTextEdit>
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
class USBViewer : public KCModule {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-06-17 06:49:39 +03:00
|
|
|
explicit USBViewer(QWidget *parent = 0L, const QVariantList &list=QVariantList());
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2021-06-17 06:49:39 +03:00
|
|
|
void load();
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
protected Q_SLOTS:
|
2021-06-17 06:49:39 +03:00
|
|
|
void selectionChanged(QTreeWidgetItem *item);
|
|
|
|
void refresh();
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
private:
|
2021-06-17 06:49:39 +03:00
|
|
|
QMap<int, QTreeWidgetItem*> _items;
|
|
|
|
QTreeWidget *_devices;
|
|
|
|
QTextEdit *_details;
|
2014-11-13 19:30:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|