kde-workspace/kinfocenter/Modules/usbview/kcmusb.h

41 lines
1.2 KiB
C
Raw Normal View History

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>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QTextEdit>
2014-11-13 19:30:51 +02:00
class USBViewer : public KCModule {
Q_OBJECT
public:
explicit USBViewer(QWidget *parent = 0L, const QVariantList &list=QVariantList());
2014-11-13 19:30:51 +02:00
void load();
2014-11-13 19:30:51 +02:00
protected Q_SLOTS:
void selectionChanged(QTreeWidgetItem *item);
void refresh();
2014-11-13 19:30:51 +02:00
private:
QMap<int, QTreeWidgetItem*> _items;
QTreeWidget *_devices;
QTextEdit *_details;
2014-11-13 19:30:51 +02:00
};
#endif