1 /* This file is part of the KDE project
3 Copyright (C) 2007 John Tapsell <tapsell@kde.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
25 #include <QtCore/QObject>
26 #include <QtCore/QProcess>
27 #include <QtGui/QTreeWidget>
28 #include <kapplication.h>
30 struct KLsofWidgetPrivate
;
32 class KDE_EXPORT KLsofWidget
: public QTreeWidget
{
34 Q_PROPERTY( qlonglong pid READ pid WRITE setPid
)
36 KLsofWidget(QWidget
*parent
= NULL
);
41 /* For QProcess *process */
42 //void error ( QProcess::ProcessError error );
43 void finished ( int exitCode
, QProcess::ExitStatus exitStatus
);
44 //void readyReadStandardError ();
45 //void readyReadStandardOutput ();
47 qlonglong
pid() const;
48 void setPid(qlonglong pid
);
50 KLsofWidgetPrivate
* const d
;
53 /* class LsofProcessInfo {
65 QString file_descriptor;
67 int file_struct_share_count;
68 char device_character_code;
70 long file_struct_address;
75 long file_struct_node_id;
77 QString protocol_name;
78 QString stream_module;