Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kinfocenter / samba / ksmbstatus.h
blob982ae3f6a2a3f66aa334599dddc352ee0018647b
1 /*
2 * ksmbstatus.h
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program 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
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef ksmbstatus_h_included
20 #define ksmbstatus_h_included
22 #include <QTimer>
23 #include <QLabel>
24 #include <k3process.h>
25 #include <Qt3Support/Q3CheckListItem>
26 #include <kconfig.h>
28 #define SCREEN_XY_OFFSET 20
30 class K3Process;
32 class NetMon : public QWidget {
33 Q_OBJECT
34 public:
35 explicit NetMon(QWidget *parent, KConfig * config=0);
36 void saveSettings() {
38 void loadSettings() {
40 private:
41 KConfig *configFile;
42 K3Process *showmountProc;
43 Q3ListView *list;
44 QLabel *version;
45 QTimer *timer;
46 Q3ListViewItem *killrow;
47 int rownumber;
48 enum {header, connexions, locked_files, finished, nfs} readingpart;
49 int lo[65536];
50 int nrpid;
51 void processNFSLine(char *bufline, int linelen);
52 void processSambaLine(char *bufline, int linelen);
54 QByteArray strShare, strUser, strGroup, strMachine, strSince, strPid;
55 int iUser, iGroup, iMachine, iPid;
57 private Q_SLOTS:
58 void killShowmount();
59 void update();
60 void slotReceivedData(K3Process *proc, char *buffer, int buflen);
63 #endif // main_included