Diffstat (limited to 'noncore/unsupported/mail2/bend/bend.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/bend/bend.h | 38 |
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 @@ +#ifndef BEND_H +#define BEND_H + +#include <qbutton.h> + +class Config; +class QTimer; +class IMAPResponse; + +class BenD : public QButton +{ + Q_OBJECT + +public: + BenD(QWidget *parent = 0, const char *name = 0, WFlags fl = 0); + +protected: + void drawButton(QPainter *); + void drawButtonText(QPainter *); + void gotNewMail(); + QString rot13(const QString &input); + +protected slots: + void slotCheck(); + void slotClicked(); + void slotSoundOff(); + void slotIMAPStatus(IMAPResponse &response); + +private: + Config *_config; + QTimer *_intervalTimer; + int _intervalMs; + bool _ledOn; + +}; + +#endif + |