Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 146956

Summary: [Provider] MSN
Product: [RT] ECF Reporter: Chris Aniszczyk <caniszczyk>
Component: ecf.coreAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: henszey, sune, villane
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Chris Aniszczyk CLA 2006-06-13 20:18:20 EDT
An MSN provider implementation would be great.

BSD Library here: https://sourceforge.net/projects/jmsn/

Some more resources: http://www.hypothetic.org/docs/msn/resources/projects.php
Comment 1 Ryan Henszey CLA 2006-10-08 16:25:37 EDT
Just adding myself to the CC list to get updates if anything happens.
Comment 2 Remy Suen CLA 2006-10-09 01:18:11 EDT
(In reply to comment #1)
> Just adding myself to the CC list to get updates if anything happens.
Actually, it looks like something was checked into the OSUOSL repo a few weeks ago. Login with ':pserver:anonymous@ecf1.osuosl.org:/ecf' and look in the 'plugins' folder.
Comment 3 Remy Suen CLA 2006-10-09 01:31:53 EDT
(In reply to comment #2)
> Actually, it looks like something was checked into the OSUOSL repo a few weeks
> ago. Login with ':pserver:anonymous@ecf1.osuosl.org:/ecf' and look in the
> 'plugins' folder.

Scratch that. Having actually checked out the code from CVS, I see that there are only skeleton implementations of interfaces at the moment.
Comment 4 Remy Suen CLA 2007-01-13 10:49:53 EST
I have submitted a CQ with my MSNP11 implementation code to the Foundation. Committers and Foundation staff can refer to CQ #1146 to monitor its status.

https://dev.eclipse.org/ipzilla/show_bug.cgi?id=1146
Comment 5 Remy Suen CLA 2007-02-27 16:38:46 EST
CQ #1146 has been closed and so has CQ #1352. [1] org.hantsuki.gokigenyou and org.eclipse.ecf.provider.msn has been committed into CVS under the Technology project's org.eclipse.ecf/providers/ directory. org.hantsuki.gokigenyou.tests will go in later.

Sample code:
IContainer container = new MSNContainerInstantiator().createInstance(
		null, null);
IPresenceContainerAdapter ipca = (IPresenceContainerAdapter) container
		.getAdapter(IPresenceContainerAdapter.class);
IChatManager icm = ipca.getChatManager();
icm.addMessageListener(new IIMMessageListener() {
	public void handleMessageEvent(IIMMessageEvent e) {
		if (e instanceof IChatMessageEvent) {
			IChatMessageEvent icme = (IChatMessageEvent) e;
			System.out.println(icme.getFromID().getName() + ": "
					+ icme.getChatMessage().getBody());
		}
	}

});
container.connect(IDFactory.getDefault().createStringID(
		"first.account@yourhost.com"), ConnectContextFactory
		.createPasswordConnectContext("firstaccountpassword"));
IChatMessageSender icms = icm.getChatMessageSender();
icms.sendChatMessage(IDFactory.getDefault().createStringID(
		"second.account@yourhost.com"), "Hello world!");

Note that this code creates a direct call to MSNContainerInstantiator, which is an internal class. Thus, this test class should be created within the org.eclipse.ecf.provider.msn plug-in project. The code above is purely for illustrative purposes as the proper way of creating IContainers ought to go through an IContainerFactory implementation.

I am closing this bug.

All interested parties that wish to contribute at the protocol implementation level should familiarize themselves with MSNP11 and above and open bugs or email me personally. [2]

[1] - https://dev.eclipse.org/ipzilla/show_bug.cgi?id=1352
[2] - http://msnpiki.msnfanatic.com/index.php/Main_Page