00001 #ifndef BEND_H 00002 #define BEND_H 00003 00004 #include <qbutton.h> 00005 00006 class Config; 00007 class QTimer; 00008 class IMAPResponse; 00009 00010 class BenD : public QButton 00011 { 00012 Q_OBJECT 00013 00014 public: 00015 BenD(QWidget *parent = 0, const char *name = 0, WFlags fl = 0); 00016 00017 protected: 00018 void drawButton(QPainter *); 00019 void drawButtonText(QPainter *); 00020 void gotNewMail(); 00021 00022 protected slots: 00023 void slotCheck(); 00024 void slotClicked(); 00025 void slotIMAPStatus(IMAPResponse &response); 00026 00027 private: 00028 Config *_config; 00029 QTimer *_intervalTimer; 00030 int _intervalMs; 00031 00032 }; 00033 00034 #endif 00035
1.4.2