diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/examples/simplemail/SimpleMailer.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/examples/simplemail/SimpleMailer.java')
-rw-r--r-- | kdejava/koala/examples/simplemail/SimpleMailer.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/kdejava/koala/examples/simplemail/SimpleMailer.java b/kdejava/koala/examples/simplemail/SimpleMailer.java new file mode 100644 index 00000000..bd30f2da --- /dev/null +++ b/kdejava/koala/examples/simplemail/SimpleMailer.java @@ -0,0 +1,39 @@ +//package com.werpu.simplemail; + +import org.kde.qt.*; +import org.kde.koala.*; + + +/** + * + * @author Werner Punz werpu@gmx.at + * This is a simple mailer to demonstrate the connection + * of KDE Java with java packages. + * It demonstrates the connection between KDEJava and the javamail API + * to send mails from a KDE Application box via the SMTP protocol + * Note:The javamail and activation jar files have to be in your classpath! + * + */ +public class SimpleMailer extends KApplication{ + static { + qtjava.initialize(); + kdejava.initialize(); + } + + public SimpleMailer() { + super(); + SimpleMailFrm mainWidget = new SimpleMailFrm(this); + this.setMainWidget(mainWidget); + mainWidget.show(); + this.exec(); + } + + /** + * Entry point for the program + */ + public static void main(String [] argv) { + KCmdLineArgs.init(argv, "simplemailer", "SimpleMailer", + "Simple Mailing Application", "0.1"); + SimpleMailer mailClnt = new SimpleMailer(); + } +} |