summaryrefslogtreecommitdiff
path: root/noncore/net/mail/taskbarapplet/mailapplet.h
blob: 25f0652974e1c81b13a2312d313572f042072b80 (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
38
#ifndef MAILAPPLET_H
#define MAILAPPLET_H

#include <qbutton.h>

#include <libmailwrapper/statusmail.h>

class Config;
class QTimer;

class MailApplet : public QWidget {

	Q_OBJECT

public:
	MailApplet( QWidget *parent = 0 );
        ~MailApplet();

protected:
	void gotNewMail();
        void mouseReleaseEvent( QMouseEvent* );
        void paintEvent( QPaintEvent* );

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

};

#endif