Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / docking.h
blobd7b415ad98f6cfd8930c306206010cf29edd6c7b
1 /*
2 * kPPP: A pppd Front End for the KDE project
4 * $Id$
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
9 * This file was contributed by Harri Porten <porten@tu-harburg.de>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this program; if not, write to the Free
24 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 #ifndef _DOCKING_H_
29 #define _DOCKING_H_
31 #include <qpixmap.h>
32 //Added by qt3to4:
33 #include <QShowEvent>
34 #include <ksystemtrayicon.h>
36 class PPPStats;
38 class DockWidget : public KSystemTrayIcon {
39 Q_OBJECT
40 public:
41 DockWidget(QWidget * parent, const char *name, PPPStats *st);
42 ~DockWidget();
44 protected:
45 void showEvent(QShowEvent *) { }
47 public slots:
48 void paintIcon(int);
49 void take_stats();
50 void stop_stats();
52 public:
53 static DockWidget *dock_widget;
55 private:
56 PPPStats *stats;
58 QMenu *popup_m;
60 QPixmap dock_none_pixmap;
61 QPixmap dock_left_pixmap;
62 QPixmap dock_right_pixmap;
63 QPixmap dock_both_pixmap;
66 #endif