summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/bend/bend.h
blob: 233c5527f09ee6a4970a1ad2b0875c12b25bf582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#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();

protected slots:
	void slotCheck();
	void slotClicked();
	void slotIMAPStatus(IMAPResponse &response);

private:
	Config *_config;
	QTimer *_intervalTimer;
	int _intervalMs;

};

#endif