Diffstat (limited to 'noncore/net/mail/taskbarapplet') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailapplet.cpp | 17 | ||||
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailapplet.h | 0 | ||||
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailappletimpl.cpp | 13 | ||||
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailappletimpl.h | 0 |
4 files changed, 17 insertions, 13 deletions
diff --git a/noncore/net/mail/taskbarapplet/mailapplet.cpp b/noncore/net/mail/taskbarapplet/mailapplet.cpp index 5d98783..35198d1 100644 --- a/noncore/net/mail/taskbarapplet/mailapplet.cpp +++ b/noncore/net/mail/taskbarapplet/mailapplet.cpp | |||
@@ -39,4 +39,6 @@ MailApplet::MailApplet( QWidget *parent ) | |||
39 | MailApplet::~MailApplet() { | 39 | MailApplet::~MailApplet() { |
40 | if (m_statusMail) delete m_statusMail; | 40 | if ( m_statusMail ) |
41 | if (m_config) delete m_config; | 41 | delete m_statusMail; |
42 | if ( m_config ) | ||
43 | delete m_config; | ||
42 | } | 44 | } |
@@ -59,3 +61,2 @@ void MailApplet::mouseReleaseEvent( QMouseEvent* e) { | |||
59 | void MailApplet::slotClicked() { | 61 | void MailApplet::slotClicked() { |
60 | qDebug( " CLICKED" ); | ||
61 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 62 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
@@ -83,3 +84,2 @@ void MailApplet::startup() { | |||
83 | connect( m_intervalTimer, SIGNAL(timeout() ), this, SLOT( slotCheck() ) ); | 84 | connect( m_intervalTimer, SIGNAL(timeout() ), this, SLOT( slotCheck() ) ); |
84 | |||
85 | } | 85 | } |
@@ -94,3 +94,2 @@ void MailApplet::slotCheck() { | |||
94 | 94 | ||
95 | |||
96 | folderStat stat; | 95 | folderStat stat; |
@@ -98,6 +97,7 @@ void MailApplet::slotCheck() { | |||
98 | m_newMails = stat.message_unseen; | 97 | m_newMails = stat.message_unseen; |
99 | qDebug( QString( "test %1" ).arg( stat.message_unseen ) ); | 98 | qDebug( QString( "test %1" ).arg( m_newMails ) ); |
100 | if ( m_newMails > 0 ) { | 99 | if ( m_newMails > 0 ) { |
101 | ODevice *device = ODevice::inst(); | 100 | ODevice *device = ODevice::inst(); |
102 | if ( isHidden() ) show(); | 101 | if ( isHidden() ) |
102 | show(); | ||
103 | if ( m_config->readBoolEntry( "BlinkLed", true ) ) { | 103 | if ( m_config->readBoolEntry( "BlinkLed", true ) ) { |
@@ -120,3 +120,4 @@ void MailApplet::slotCheck() { | |||
120 | ODevice *device = ODevice::inst(); | 120 | ODevice *device = ODevice::inst(); |
121 | if ( !isHidden() ) hide(); | 121 | if ( !isHidden() ) |
122 | hide(); | ||
122 | if ( !device-> ledList( ).isEmpty( ) ) { | 123 | if ( !device-> ledList( ).isEmpty( ) ) { |
diff --git a/noncore/net/mail/taskbarapplet/mailapplet.h b/noncore/net/mail/taskbarapplet/mailapplet.h index 25f0652..b4d3742 100644 --- a/noncore/net/mail/taskbarapplet/mailapplet.h +++ b/noncore/net/mail/taskbarapplet/mailapplet.h | |||
diff --git a/noncore/net/mail/taskbarapplet/mailappletimpl.cpp b/noncore/net/mail/taskbarapplet/mailappletimpl.cpp index 26f6a6f..c01a674 100644 --- a/noncore/net/mail/taskbarapplet/mailappletimpl.cpp +++ b/noncore/net/mail/taskbarapplet/mailappletimpl.cpp | |||
@@ -5,3 +5,2 @@ MailAppletImpl::MailAppletImpl() | |||
5 | : m_mailApplet(0), ref(0) { | 5 | : m_mailApplet(0), ref(0) { |
6 | |||
7 | } | 6 | } |
@@ -13,3 +12,4 @@ MailAppletImpl::~MailAppletImpl() { | |||
13 | QWidget *MailAppletImpl::applet(QWidget *parent) { | 12 | QWidget *MailAppletImpl::applet(QWidget *parent) { |
14 | if (!m_mailApplet) m_mailApplet = new MailApplet(parent); | 13 | if (!m_mailApplet) |
14 | m_mailApplet = new MailApplet(parent); | ||
15 | return m_mailApplet; | 15 | return m_mailApplet; |
@@ -23,6 +23,9 @@ QRESULT MailAppletImpl::queryInterface(const QUuid &uuid, QUnknownInterface **if | |||
23 | *iface = 0; | 23 | *iface = 0; |
24 | if (uuid == IID_QUnknown) *iface = this; | 24 | if (uuid == IID_QUnknown) |
25 | else if (uuid == IID_TaskbarApplet) *iface = this; | 25 | *iface = this; |
26 | else if (uuid == IID_TaskbarApplet) | ||
27 | *iface = this; | ||
26 | 28 | ||
27 | if (*iface) (*iface)->addRef(); | 29 | if (*iface) |
30 | (*iface)->addRef(); | ||
28 | return QS_OK; | 31 | return QS_OK; |
diff --git a/noncore/net/mail/taskbarapplet/mailappletimpl.h b/noncore/net/mail/taskbarapplet/mailappletimpl.h index 4f27eb3..4809053 100644 --- a/noncore/net/mail/taskbarapplet/mailappletimpl.h +++ b/noncore/net/mail/taskbarapplet/mailappletimpl.h | |||