Diffstat (limited to 'noncore/applets/pyquicklaunch/pyquicklaunch.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/pyquicklaunch/pyquicklaunch.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/noncore/applets/pyquicklaunch/pyquicklaunch.h b/noncore/applets/pyquicklaunch/pyquicklaunch.h index e99f780..f108b43 100644 --- a/noncore/applets/pyquicklaunch/pyquicklaunch.h +++ b/noncore/applets/pyquicklaunch/pyquicklaunch.h | |||
@@ -7,51 +7,62 @@ | |||
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
12 | ** | 12 | ** |
13 | **********************************************************************/ | 13 | **********************************************************************/ |
14 | 14 | ||
15 | #ifndef PYQUICKLAUNCHAPPLET_H | 15 | #ifndef PYQUICKLAUNCHAPPLET_H |
16 | #define PYQUICKLAUNCHAPPLET_H | 16 | #define PYQUICKLAUNCHAPPLET_H |
17 | 17 | ||
18 | #include <qwidget.h> | 18 | #include <qwidget.h> |
19 | #include <qfile.h> | ||
19 | #include <qframe.h> | 20 | #include <qframe.h> |
20 | #include <qpixmap.h> | 21 | #include <qpixmap.h> |
21 | 22 | ||
22 | class PyQuicklaunchApplet; | 23 | class PyQuicklaunchApplet; |
24 | class QCopChannel; | ||
23 | 25 | ||
24 | class PyQuicklaunchControl : public QFrame | 26 | class PyQuicklaunchControl : public QFrame |
25 | { | 27 | { |
26 | Q_OBJECT | 28 | Q_OBJECT |
27 | public: | 29 | public: |
28 | PyQuicklaunchControl( PyQuicklaunchApplet* icon, QWidget *parent=0, const char *name=0 ); | 30 | PyQuicklaunchControl( PyQuicklaunchApplet* icon, QWidget *parent=0, const char *name=0 ); |
29 | void show( bool ); | 31 | void show( bool ); |
30 | 32 | ||
31 | void readConfig(); | 33 | void readConfig(); |
32 | void writeConfigEntry( const char* entry, int val ); | 34 | void writeConfigEntry( const char* entry, int val ); |
33 | 35 | ||
34 | public slots: | ||
35 | |||
36 | private: | 36 | private: |
37 | PyQuicklaunchApplet* applet; | 37 | PyQuicklaunchApplet* applet; |
38 | }; | 38 | }; |
39 | 39 | ||
40 | class PyQuicklaunchApplet : public QWidget | 40 | class PyQuicklaunchApplet : public QWidget |
41 | { | 41 | { |
42 | Q_OBJECT | 42 | Q_OBJECT |
43 | public: | 43 | public: |
44 | PyQuicklaunchApplet( QWidget *parent = 0, const char *name=0 ); | 44 | PyQuicklaunchApplet( QWidget *parent = 0, const char *name=0 ); |
45 | ~PyQuicklaunchApplet(); | 45 | ~PyQuicklaunchApplet(); |
46 | static int position(); | 46 | static int position(); |
47 | PyQuicklaunchControl* status; | 47 | PyQuicklaunchControl* status; |
48 | 48 | ||
49 | virtual void timerEvent( QTimerEvent* ); | 49 | virtual void timerEvent( QTimerEvent* ); |
50 | bool online; | ||
51 | |||
52 | public slots: | ||
53 | void receivedMessage( const QCString & msg, const QByteArray & data ); | ||
50 | 54 | ||
51 | protected: | 55 | protected: |
52 | virtual void mousePressEvent( QMouseEvent * ); | 56 | virtual void mousePressEvent( QMouseEvent * ); |
53 | virtual void paintEvent( QPaintEvent* ); | 57 | virtual void paintEvent( QPaintEvent* ); |
58 | |||
59 | private: | ||
60 | QCopChannel* _control; | ||
61 | QFile _fifo; | ||
62 | QString _fifoName; | ||
63 | QPixmap _online; | ||
64 | QPixmap _offline; | ||
54 | }; | 65 | }; |
55 | 66 | ||
56 | #endif // PYQUICKLAUNCHAPPLET_H | 67 | #endif // PYQUICKLAUNCHAPPLET_H |
57 | 68 | ||