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 | |
36 | class PPPStats; |
37 | |
38 | class DockWidget : public KSystemTrayIcon { |
39 | Q_OBJECT |
40 | public: |
41 | DockWidget(QWidget * parent, const char *name, PPPStats *st); |
42 | ~DockWidget(); |
43 | |
44 | protected: |
45 | void showEvent(QShowEvent *) { } |
46 | |
47 | public slots: |
48 | void paintIcon(int); |
49 | void take_stats(); |
50 | void stop_stats(); |
51 | |
52 | public: |
53 | static DockWidget *dock_widget; |
54 | |
55 | private: |
56 | PPPStats *stats; |
57 | |
58 | QMenu *; |
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 | |