summaryrefslogtreecommitdiff
path: root/noncore/net/mail/taskbarapplet
authorharlekin <harlekin>2004-01-05 21:13:38 (UTC)
committer harlekin <harlekin>2004-01-05 21:13:38 (UTC)
commit0c41bcb3472b013a55b990bc45280043dfcf4986 (patch) (unidiff)
tree1136f4580b5f8f8a2a699545f8e9fb0006a0e054 /noncore/net/mail/taskbarapplet
parent3804209658d051d197526a28561bbd2e31b6f439 (diff)
downloadopie-0c41bcb3472b013a55b990bc45280043dfcf4986.zip
opie-0c41bcb3472b013a55b990bc45280043dfcf4986.tar.gz
opie-0c41bcb3472b013a55b990bc45280043dfcf4986.tar.bz2
update
Diffstat (limited to 'noncore/net/mail/taskbarapplet') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/taskbarapplet/mailapplet.cpp17
-rw-r--r--noncore/net/mail/taskbarapplet/mailapplet.h0
-rw-r--r--noncore/net/mail/taskbarapplet/mailappletimpl.cpp13
-rw-r--r--noncore/net/mail/taskbarapplet/mailappletimpl.h0
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 )
39MailApplet::~MailApplet() { 39MailApplet::~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) {
59void MailApplet::slotClicked() { 61void 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() {
13QWidget *MailAppletImpl::applet(QWidget *parent) { 12QWidget *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