author | zecke <zecke> | 2004-10-23 13:36:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-23 13:36:29 (UTC) |
commit | b5d111eb79896d02aa13d41a04ce6aa4dbc4aa49 (patch) (unidiff) | |
tree | 6f350aa52697c9ed9ecf7bed6796c4138cb70f68 | |
parent | aac8188fde70fc5cfa9f44c6a80a907e44f0f1eb (diff) | |
download | opie-b5d111eb79896d02aa13d41a04ce6aa4dbc4aa49.zip opie-b5d111eb79896d02aa13d41a04ce6aa4dbc4aa49.tar.gz opie-b5d111eb79896d02aa13d41a04ce6aa4dbc4aa49.tar.bz2 |
Integrate opiemail with Konqueror. When now clicking on a mailto link
in Konqueror OpieMail can get asked to send a mail to the persopn
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index 2f87e44..b153292 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | using namespace Opie::Core; | 24 | using namespace Opie::Core; |
25 | 25 | ||
26 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) | 26 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags ) |
27 | : MainWindow( parent, name, WStyle_ContextHelp ) | 27 | : MainWindow( parent, name, WStyle_ContextHelp ) |
28 | { | 28 | { |
29 | setup_signalblocking(); | 29 | setup_signalblocking(); |
@@ -64,6 +64,18 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | |||
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
67 | /** | ||
68 | * Konqueror calls us with the mailto:name@address | ||
69 | */ | ||
70 | void OpieMail::setDocument(const QString& mail) | ||
71 | { | ||
72 | /* | ||
73 | * It looks like a mailto address, lets try it | ||
74 | */ | ||
75 | if( mail.startsWith(QString::fromLatin1("mailto:")) ) | ||
76 | slotwriteMail(QString::null, mail.mid(7)); | ||
77 | } | ||
78 | |||
67 | void OpieMail::slotwriteMail(const QString&name,const QString&email) | 79 | void OpieMail::slotwriteMail(const QString&name,const QString&email) |
68 | { | 80 | { |
69 | ComposeMail compose( settings, this, 0, true , WStyle_ContextHelp ); | 81 | ComposeMail compose( settings, this, 0, true , WStyle_ContextHelp ); |