summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/examples/simplemail/SimpleMailer.java
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-01-08 20:06:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-01-08 20:06:00 +0100
commit636f509299122d02087c6fd62e1e4a46dbd22026 (patch)
tree70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/examples/simplemail/SimpleMailer.java
parent719b61750c08343f530068ed4127623aeac71cf0 (diff)
downloadtdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz
tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/examples/simplemail/SimpleMailer.java')
-rw-r--r--tdejava/koala/examples/simplemail/SimpleMailer.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/tdejava/koala/examples/simplemail/SimpleMailer.java b/tdejava/koala/examples/simplemail/SimpleMailer.java
new file mode 100644
index 00000000..a31b88b0
--- /dev/null
+++ b/tdejava/koala/examples/simplemail/SimpleMailer.java
@@ -0,0 +1,39 @@
+//package com.werpu.simplemail;
+
+import org.trinitydesktop.qt.*;
+import org.trinitydesktop.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 TDEApplication{
+ static {
+ qtjava.initialize();
+ tdejava.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) {
+ TDECmdLineArgs.init(argv, "simplemailer", "SimpleMailer",
+ "Simple Mailing Application", "0.1");
+ SimpleMailer mailClnt = new SimpleMailer();
+ }
+}