add more spacing
[personal-kdebase.git] / workspace / libs / ksysguard / lsofui / lsof.h
blob1b7bb3aaf1b7a5117a615731170b54827953447a
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.
22 #ifndef LSOFWIDGET_H_
23 #define LSOFWIDGET_H_
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 {
33 Q_OBJECT
34 Q_PROPERTY( qlonglong pid READ pid WRITE setPid )
35 public:
36 KLsofWidget(QWidget *parent = NULL);
37 ~KLsofWidget();
38 bool update();
40 private Q_SLOTS:
41 /* For QProcess *process */
42 //void error ( QProcess::ProcessError error );
43 void finished ( int exitCode, QProcess::ExitStatus exitStatus );
44 //void readyReadStandardError ();
45 //void readyReadStandardOutput ();
46 //void started ();
47 qlonglong pid() const;
48 void setPid(qlonglong pid);
49 private:
50 KLsofWidgetPrivate* const d;
53 /* class LsofProcessInfo {
54 public:
55 pid_t tpid;
56 int pidst;
57 pid_t pid;
58 pid_t ppid;
59 pid_t pgrp;
60 int uid;
61 QString cmd;
62 QString login;
64 class LsofFileInfo {
65 QString file_descriptor;
66 char access;
67 int file_struct_share_count;
68 char device_character_code;
69 long major_minor;
70 long file_struct_address;
71 long file_flags;
72 long inode;
73 long link_count;
74 char lock;
75 long file_struct_node_id;
76 long file_offset;
77 QString protocol_name;
78 QString stream_module;
79 QString file_type;
80 QString tcp_info;
83 #endif