Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pyquicklaunch.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
00003 ** All rights reserved.
00004 **
00005 ** This file may be distributed and/or modified under the terms of the
00006 ** GNU General Public License version 2 as published by the Free Software
00007 ** Foundation and appearing in the file LICENSE.GPL included in the
00008 ** packaging of this file.
00009 **
00010 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00011 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00012 **
00013 **********************************************************************/
00014 
00015 #ifndef PYQUICKLAUNCHAPPLET_H
00016 #define PYQUICKLAUNCHAPPLET_H
00017 
00018 #include <qwidget.h>
00019 #include <qfile.h>
00020 #include <qframe.h>
00021 #include <qpixmap.h>
00022 
00023 class PyQuicklaunchApplet;
00024 class QCopChannel;
00025 
00026 class PyQuicklaunchControl : public QFrame
00027 {
00028     Q_OBJECT
00029   public:
00030     PyQuicklaunchControl( PyQuicklaunchApplet* icon, QWidget *parent=0, const char *name=0 );
00031     void show( bool );
00032 
00033     void readConfig();
00034     void writeConfigEntry( const char* entry, int val );
00035 
00036   private:
00037     PyQuicklaunchApplet* applet;
00038 };
00039 
00040 class PyQuicklaunchApplet : public QWidget
00041 {
00042     Q_OBJECT
00043   public:
00044     PyQuicklaunchApplet( QWidget *parent = 0, const char *name=0 );
00045     ~PyQuicklaunchApplet();
00046     static int position();
00047     PyQuicklaunchControl* status;
00048 
00049     virtual void timerEvent( QTimerEvent* );
00050     bool online;
00051 
00052   public slots:
00053     void receivedMessage( const QCString & msg, const QByteArray & data );
00054 
00055   protected:
00056     virtual void mousePressEvent( QMouseEvent * );
00057     virtual void paintEvent( QPaintEvent* );
00058 
00059   private:
00060     QCopChannel* _control;
00061     QFile _fifo;
00062     QString _fifoName;
00063     QPixmap _online;
00064     QPixmap _offline;
00065 };
00066 
00067 #endif // PYQUICKLAUNCHAPPLET_H
00068 

Generated on Sat Nov 5 16:16:45 2005 for OPIE by  doxygen 1.4.2