| Summary: | [Provider] MSN | ||
|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Chris Aniszczyk <caniszczyk> |
| Component: | ecf.core | Assignee: | Remy Suen <remy.suen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | henszey, sune, villane |
| Version: | unspecified | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Chris Aniszczyk
Just adding myself to the CC list to get updates if anything happens. (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. (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. 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 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
|