[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: [Bug 85674] Calling DCOP method sendMessage() in
From: gambas <gambas () users ! sourceforge ! net>
Date: 2004-12-29 13:59:08
Message-ID: 20041229135908.4044.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=85674
gambas users sourceforge net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|WORKSFORME |
------- Additional Comments From gambas users sourceforge net 2004-12-29 14:59 \
------- This is worse that I thought :-) The warning box gives me two choices: change \
the encoding, or ignoring the 'bad' characters. If I choose the first one, nothing \
happens. If I choose the second one, the mail is sent, but without the joined \
picture. The attachment path is correct, as KMail briefly displays the KIO copy \
window with the picture path in it.
The Gambas code that does the DCOP call is just:
PUBLIC SUB Main()
DIM hApp AS KDEApplication
hApp = Application["kmail"]
hApp.MailTransportServiceIface.sendMessage("<my e-mail is hidden>", "<the \
destination is hidden too>", "", "", "test " & Now, "The body", [ \
"/home/benoit/Documents/photo.jpg" ]) END
kmail is running before I run this program.
If you want to know how I do DCOP calls, you can look in the \
./src/lib/qt/kde/CApplication.cpp file in the gambas sources.
In a few words, I cache the DCOP method definitions for each application. When I do \
the call, I convert any Gambas datatype to the corresponding Qt/KDE datatype, and if \
there is no errors, I do the DCOP call.
I wrote the DCOP calling code by reading the kdcop sources.
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic