summaryrefslogtreecommitdiff
path: root/noncore/net/mail/taskbarapplet/mailapplet.h
blob: 8369176fc3e16336f3c73fea1b6532e2fb7a1a88 (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
36
37
#ifndef MAILAPPLET_H
#define MAILAPPLET_H

#include <qbutton.h>

#include <libmailwrapper/statusmail.h>

class Config;
class QTimer;

class MailApplet : public QButton {

	Q_OBJECT

public:
	MailApplet( QWidget *parent = 0, const char  *name = 0, WFlags fl = 0 );
        ~MailApplet();

protected:
	void drawButton(QPainter *);
	void drawButtonText(QPainter *);
	void gotNewMail();

protected slots:
        void startup();
	void slotCheck();
	void slotClicked();
private:
	Config *m_config;
	QTimer *m_intervalTimer;
	int m_intervalMs;
        StatusMail* m_statusMail;

};

#endif