summaryrefslogtreecommitdiff
authorzecke <zecke>2004-10-23 13:36:29 (UTC)
committer zecke <zecke>2004-10-23 13:36:29 (UTC)
commitb5d111eb79896d02aa13d41a04ce6aa4dbc4aa49 (patch) (side-by-side diff)
tree6f350aa52697c9ed9ecf7bed6796c4138cb70f68
parentaac8188fde70fc5cfa9f44c6a80a907e44f0f1eb (diff)
downloadopie-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
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/opiemail.cpp14
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
@@ -25,3 +25,3 @@ using namespace Opie::Core;
-OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags )
+OpieMail::OpieMail( QWidget *parent, const char *name, WFlags )
: MainWindow( parent, name, WStyle_ContextHelp )
@@ -66,2 +66,14 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data)
+/**
+ * Konqueror calls us with the mailto:name@address
+ */
+void OpieMail::setDocument(const QString& mail)
+{
+ /*
+ * It looks like a mailto address, lets try it
+ */
+ if( mail.startsWith(QString::fromLatin1("mailto:")) )
+ slotwriteMail(QString::null, mail.mid(7));
+}
+
void OpieMail::slotwriteMail(const QString&name,const QString&email)