summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/examples/simplemail/SimpleMailer.java
blob: cc57e13190a1be1948cc65f59d5e4980e11eef16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 TDEApplication{
    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();
    }
}