1/*
2 * kPPP: A pppd Front End for the KDE project
3 *
4 * $Id$
5 *
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
8 *
9 * This file was contributed by Harri Porten <porten@tu-harburg.de>
10 *
11 *
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.
16 *
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.
21 *
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.
25 */
26
27
28#ifndef _DOCKING_H_
29#define _DOCKING_H_
30
31#include <qpixmap.h>
32//Added by qt3to4:
33#include <QShowEvent>
34#include <ksystemtrayicon.h>
35
36class PPPStats;
37
38class DockWidget : public KSystemTrayIcon {
39 Q_OBJECT
40public:
41 DockWidget(QWidget * parent, const char *name, PPPStats *st);
42 ~DockWidget();
43
44protected:
45 void showEvent(QShowEvent *) { }
46
47public slots:
48 void paintIcon(int);
49 void take_stats();
50 void stop_stats();
51
52public:
53 static DockWidget *dock_widget;
54
55private:
56 PPPStats *stats;
57
58 QMenu *popup_m;
59
60 QPixmap dock_none_pixmap;
61 QPixmap dock_left_pixmap;
62 QPixmap dock_right_pixmap;
63 QPixmap dock_both_pixmap;
64};
65
66#endif
67