This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Extending KMail - Adding a new toolbar

Tags: None
(comma "," separated)
jsimas
Registered Member
Posts
3
Karma
0
Hello.

I need to develop a new toolbar with one or two buttons in KMail (hoppelly in JAVA). Can anyone give me any pointers on what development tool should i use, and if i can get the job done using JAVA?

Thanks for your help.

Best regards.

JSimas
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KMail is written in C++, using Qt 4 ( and KDE Libs ). What do you plan on doing to KMail? Adding new functionality, or changing the layout of toolbars?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jsimas
Registered Member
Posts
3
Karma
0
Thank you for the quick answer!

I have a project requirement to add a new functionality to the KMAIL app. In a quick description, it's a button responsible to send the opened (or selected) e-mail to a web application.

All our development is based on Java, and that's why i asked if it was possible to do the job using Java. But, maybe it's time to refresh the c++ courses in college :)

Do you have any suggestions on what IDE should i use, and what tutorial should i read to get started?

Thanks for you help.
Best regards.

JSimas
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which version of KDE are you working with? If it is KDE 3, then you may be able to use KDevelop.

If it is KDE 4, then either Qt creator, or KDevelop4 should be sufficient.

Note that a text editor, the web documentation ( which can be found at api.kde.org and doc.qt.nokia.com ) and a terminal is also sufficient.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
You can even use Java via QtJambi+JNI but IMO it would be more complicated than refreshing on C++ :)


Image
jsimas
Registered Member
Posts
3
Karma
0
Hi.

I already installed KDevelop4 in my Kubunto 10.0.4 (with KDE 4.4.2).

Although i already created the HelloWorld classic application, i have no clue on how to start a KMail add in. For my first approach i'm trying to add a new button to KMail that create a message alert with "Hello World". Can anyone give me any pointers on wich classes should i access to register new toolbars and buttons in KMail?

Thanks for your help!
João Simas
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would recommend asking on the KDE PIM development mailing list if you do not recieve a response here.

kde-pim@kde.org.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
The question is, what does "sending a selected message to a web service" mean in detail?

It might be possible to get the currently selected messages through KMail's D-Bus interface (which there are Java Bindings for).

Otherwise maybe by creating a manually triggerable filter that calls an external program.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]