-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 | |||
@@ -24,5 +24,5 @@ | |||
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 | { |
@@ -65,4 +65,16 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | |||
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 | { |