summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/bend/bend.h
Unidiff
Diffstat (limited to 'noncore/unsupported/mail2/bend/bend.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mail2/bend/bend.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/bend/bend.h b/noncore/unsupported/mail2/bend/bend.h
new file mode 100644
index 0000000..cf50bc5
--- a/dev/null
+++ b/noncore/unsupported/mail2/bend/bend.h
@@ -0,0 +1,38 @@
1#ifndef BEND_H
2#define BEND_H
3
4#include <qbutton.h>
5
6class Config;
7class QTimer;
8class IMAPResponse;
9
10class BenD : public QButton
11{
12 Q_OBJECT
13
14public:
15 BenD(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
16
17protected:
18 void drawButton(QPainter *);
19 void drawButtonText(QPainter *);
20 void gotNewMail();
21 QString rot13(const QString &input);
22
23protected slots:
24 void slotCheck();
25 void slotClicked();
26 void slotSoundOff();
27 void slotIMAPStatus(IMAPResponse &response);
28
29private:
30 Config *_config;
31 QTimer *_intervalTimer;
32 int _intervalMs;
33 bool _ledOn;
34
35};
36
37#endif
38