summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2004-07-03 16:54:31 (UTC)
committer zautrix <zautrix>2004-07-03 16:54:31 (UTC)
commit6c035951faeaea6d7651e5fd028c7fd2a674cdfc (patch) (unidiff)
treef55c6dd1f4457a5c3d387e6511d596438988955e /libkdepim
parent1da48d95d970233f0d1ea9a7fba5c98cfcf24798 (diff)
downloadkdepimpi-6c035951faeaea6d7651e5fd028c7fd2a674cdfc.zip
kdepimpi-6c035951faeaea6d7651e5fd028c7fd2a674cdfc.tar.gz
kdepimpi-6c035951faeaea6d7651e5fd028c7fd2a674cdfc.tar.bz2
Added connection to KM when clicking on email
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/addresseeview.cpp18
-rw-r--r--libkdepim/addresseeview.h2
-rw-r--r--libkdepim/kincidenceformatter.cpp6
3 files changed, 22 insertions, 4 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp
index deafd34..70fc57c 100644
--- a/libkdepim/addresseeview.cpp
+++ b/libkdepim/addresseeview.cpp
@@ -37,2 +37,9 @@
37 37
38
39#ifndef DESKTOP_VERSION
40#include <qtopia/qcopenvelope_qws.h>
41#endif
42
43
44
38using namespace KPIM; 45using namespace KPIM;
@@ -55,3 +62,11 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name )
55} 62}
63void AddresseeView::setSource(const QString& n)
64{
65 //qDebug("********AddresseeView::setSource %s", n.mid(7).latin1());
66#ifndef DESKTOP_VERSION
67 QCopEnvelope e("QPE/Application/kmpi", "newMail(QString)");
68 e << n.mid(7);
69#endif
56 70
71}
57void AddresseeView::setAddressee( const KABC::Addressee& addr ) 72void AddresseeView::setAddressee( const KABC::Addressee& addr )
@@ -87,4 +102,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
87 "<tr><td align=\"right\"><b>%1</b></td>" 102 "<tr><td align=\"right\"><b>%1</b></td>"
88 "<td align=\"left\"><a href=\"mailto:%2\">%3</a></td></tr>" ) 103 "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" )
89 .arg( type ) 104 .arg( type )
105 .arg( name )
90 .arg( *emailIt ) 106 .arg( *emailIt )
diff --git a/libkdepim/addresseeview.h b/libkdepim/addresseeview.h
index 598ef0d..1865fc4 100644
--- a/libkdepim/addresseeview.h
+++ b/libkdepim/addresseeview.h
@@ -43,3 +43,3 @@ class AddresseeView : public QTextBrowser
43 void setAddressee( const KABC::Addressee& addr ); 43 void setAddressee( const KABC::Addressee& addr );
44 44 void setSource(const QString& n);
45 /** 45 /**
diff --git a/libkdepim/kincidenceformatter.cpp b/libkdepim/kincidenceformatter.cpp
index 4815519..2f41409 100644
--- a/libkdepim/kincidenceformatter.cpp
+++ b/libkdepim/kincidenceformatter.cpp
@@ -250,3 +250,4 @@ void KIncidenceFormatter::formatAttendees(Incidence *event)
250 mText.append("<ul><li>"); 250 mText.append("<ul><li>");
251#ifndef KORG_NOKABC 251#if 0
252 //ndef KORG_NOKABC
252 253
@@ -277,3 +278,4 @@ void KIncidenceFormatter::formatAttendees(Incidence *event)
277 for(a=attendees.first();a;a=attendees.next()) { 278 for(a=attendees.first();a;a=attendees.next()) {
278#ifndef KORG_NOKABC 279#if 0
280//ndef KORG_NOKABC
279 if (a->name().isEmpty()) { 281 if (a->name().isEmpty()) {