summaryrefslogtreecommitdiff
path: root/core/applets/irdaapplet/irda.h
Side-by-side diff
Diffstat (limited to 'core/applets/irdaapplet/irda.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/irdaapplet/irda.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/core/applets/irdaapplet/irda.h b/core/applets/irdaapplet/irda.h
new file mode 100644
index 0000000..d762ff3
--- a/dev/null
+++ b/core/applets/irdaapplet/irda.h
@@ -0,0 +1,57 @@
+/**********************************************************************
+** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com
+** All rights reserved.
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
+
+#ifndef __SCREENSHOT_APPLET_H__
+#define __SCREENSHOT_APPLET_H__
+
+
+
+#include <qwidget.h>
+#include <qframe.h>
+#include <qpixmap.h>
+#include <qguardedptr.h>
+#include <qtimer.h>
+
+
+class IrdaApplet : public QWidget
+{
+ Q_OBJECT
+public:
+ IrdaApplet( QWidget *parent = 0, const char *name=0 );
+ ~IrdaApplet();
+
+protected:
+ void timerEvent(QTimerEvent *te );
+
+public slots:
+private:
+ void mousePressEvent( QMouseEvent * );
+ void paintEvent( QPaintEvent* );
+ int checkIrdaStatus();
+ int setIrdaStatus(int);
+ int sockfd;
+
+private:
+ QPixmap irdaOnPixmap;
+ QPixmap irdaOffPixmap;
+ int irdaactive;
+
+private slots:
+
+
+};
+
+
+#endif // __SCREENSHOT_APPLET_H__
+