Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] hi,about creating a new chatroom using ecf

For IRC, I had to execute the following code to join the channel:

ircClient = ContainerFactory.getDefault().createContainer("ecf.irc.irclib");

Namespace targetNamespace = ircClient.getConnectNamespace ();
ID targetID = IDFactory.getDefault().createID(targetNamespace, "irc://rcjsuen@xxxxxxxxxxxxxxxx");

ircClient.connect(targetID, ConnectContextFactory.createUsernamePasswordConnectContext ("", ""));
man = (IChatRoomManager) ircClient.getAdapter(IChatRoomManager.class);
icrc = man.getChatRoomInfo("#eclipse-soc").createChatRoomContainer();

icrc.connect(IDFactory.getDefault ().createID(icrc.getConnectNamespace(), "#eclipse-soc"), ConnectContextFactory.createPasswordConnectContext(""));

For the object types:
ircClient = IContainer
man = IChatRoomManager
icrc = IChatRoomContainer

I'm guessing that XMPP is something similar, I have yet to try connecting to my XMPP account ECF, sorry.

Regards,
Rem

On 7/19/06, lee mike <userinfo8@xxxxxxxxxxxx> wrote:
hello:
   help me !
how could  i use ecf to create a new chatroom?
i notice that i can only get a XMPPClientSOContainer when using final
IContainer client =
ContainerFactory.getDefault().createContainer(" ecf.xmpp.smack")
I wonder whether  XMPPGroupChatSOContainer is useful to this problem or not?
   if it does ,how can i get the XMPPGroupChatSOContainer?
Thanks!


抢注雅虎免费邮箱-3.5G容量,20M附件!


_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev




Back to the top