-rw-r--r-- | libkdepim/addresseeview.cpp | 18 | ||||
-rw-r--r-- | libkdepim/addresseeview.h | 2 | ||||
-rw-r--r-- | libkdepim/kincidenceformatter.cpp | 6 |
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 | |||
@@ -35,6 +35,13 @@ | |||
35 | 35 | ||
36 | #include "addresseeview.h" | 36 | #include "addresseeview.h" |
37 | 37 | ||
38 | |||
39 | #ifndef DESKTOP_VERSION | ||
40 | #include <qtopia/qcopenvelope_qws.h> | ||
41 | #endif | ||
42 | |||
43 | |||
44 | |||
38 | using namespace KPIM; | 45 | using namespace KPIM; |
39 | 46 | ||
40 | AddresseeView::AddresseeView( QWidget *parent, const char *name ) | 47 | AddresseeView::AddresseeView( QWidget *parent, const char *name ) |
@@ -53,7 +60,15 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name ) | |||
53 | //US link->setColor( KGlobalSettings::linkColor() ); | 60 | //US link->setColor( KGlobalSettings::linkColor() ); |
54 | 61 | ||
55 | } | 62 | } |
63 | void 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 | } | ||
57 | void AddresseeView::setAddressee( const KABC::Addressee& addr ) | 72 | void AddresseeView::setAddressee( const KABC::Addressee& addr ) |
58 | { | 73 | { |
59 | mAddressee = addr; | 74 | mAddressee = addr; |
@@ -85,8 +100,9 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr ) | |||
85 | for ( emailIt = emails.begin(); emailIt != emails.end(); ++emailIt ) { | 100 | for ( emailIt = emails.begin(); emailIt != emails.end(); ++emailIt ) { |
86 | dynamicPart += QString( | 101 | dynamicPart += QString( |
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 ) |
91 | .arg( *emailIt ); | 107 | .arg( *emailIt ); |
92 | type = i18n( "Other" ); | 108 | type = i18n( "Other" ); |
diff --git a/libkdepim/addresseeview.h b/libkdepim/addresseeview.h index 598ef0d..1865fc4 100644 --- a/libkdepim/addresseeview.h +++ b/libkdepim/addresseeview.h | |||
@@ -41,7 +41,7 @@ class AddresseeView : public QTextBrowser | |||
41 | @param addr The addressee object. | 41 | @param addr The addressee object. |
42 | */ | 42 | */ |
43 | void setAddressee( const KABC::Addressee& addr ); | 43 | void setAddressee( const KABC::Addressee& addr ); |
44 | 44 | void setSource(const QString& n); | |
45 | /** | 45 | /** |
46 | Returns the current addressee object. | 46 | Returns the current addressee object. |
47 | */ | 47 | */ |
diff --git a/libkdepim/kincidenceformatter.cpp b/libkdepim/kincidenceformatter.cpp index 4815519..2f41409 100644 --- a/libkdepim/kincidenceformatter.cpp +++ b/libkdepim/kincidenceformatter.cpp | |||
@@ -248,7 +248,8 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) | |||
248 | QString iconPath = KGlobal::iconLoader()->iconPath("mailappt",KIcon::Small); | 248 | QString iconPath = KGlobal::iconLoader()->iconPath("mailappt",KIcon::Small); |
249 | addTag("h3",i18n("Organizer")); | 249 | addTag("h3",i18n("Organizer")); |
250 | mText.append("<ul><li>"); | 250 | mText.append("<ul><li>"); |
251 | #ifndef KORG_NOKABC | 251 | #if 0 |
252 | //ndef KORG_NOKABC | ||
252 | 253 | ||
253 | KABC::AddressBook *add_book = KABC::StdAddressBook::self(); | 254 | KABC::AddressBook *add_book = KABC::StdAddressBook::self(); |
254 | KABC::Addressee::List addressList; | 255 | KABC::Addressee::List addressList; |
@@ -275,7 +276,8 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) | |||
275 | Attendee *a; | 276 | Attendee *a; |
276 | mText.append("<ul>"); | 277 | mText.append("<ul>"); |
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()) { |
280 | addressList = add_book->findByEmail(a->email()); | 282 | addressList = add_book->findByEmail(a->email()); |
281 | KABC::Addressee o = addressList.first(); | 283 | KABC::Addressee o = addressList.first(); |