summaryrefslogtreecommitdiff
path: root/noncore/applets/pyquicklaunch/pyquicklaunch.h
authormickeyl <mickeyl>2004-05-28 14:08:23 (UTC)
committer mickeyl <mickeyl>2004-05-28 14:08:23 (UTC)
commit130d8d2699232848ff2a89a1ab563f924ca39f4f (patch) (unidiff)
treeb9570735c275c1fa30e93195289e813d97fc24b0 /noncore/applets/pyquicklaunch/pyquicklaunch.h
parent8555ba060b1cdfcbfae939b753afc333253c99a0 (diff)
downloadopie-130d8d2699232848ff2a89a1ab563f924ca39f4f.zip
opie-130d8d2699232848ff2a89a1ab563f924ca39f4f.tar.gz
opie-130d8d2699232848ff2a89a1ab563f924ca39f4f.tar.bz2
open communication channel and listen for messages
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
@@ -16,10 +16,12 @@
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{
@@ -31,8 +33,6 @@ class PyQuicklaunchControl : public QFrame
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};
@@ -47,10 +47,21 @@ class PyQuicklaunchApplet : public QWidget
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