summaryrefslogtreecommitdiff
path: root/noncore/applets/pyquicklaunch/pyquicklaunch.h
Unidiff
Diffstat (limited to 'noncore/applets/pyquicklaunch/pyquicklaunch.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/pyquicklaunch/pyquicklaunch.h15
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
@@ -13,29 +13,29 @@
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
22class PyQuicklaunchApplet; 23class PyQuicklaunchApplet;
24class QCopChannel;
23 25
24class PyQuicklaunchControl : public QFrame 26class 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
40class PyQuicklaunchApplet : public QWidget 40class PyQuicklaunchApplet : public QWidget
41{ 41{
@@ -44,14 +44,25 @@ class PyQuicklaunchApplet : public QWidget
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