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

#include <qbutton.h>
#include <qlabel.h>

#include <libmailwrapper/statusmail.h>

class Config;
class QTimer;

class MailApplet : public QLabel {

    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