[sip-comm-dev] Display User Agent Plug-in MulitUserChat implementation Question


#1

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

I found an image that would give you an idea of the image I have in mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg

···

________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC, does this mean that we are able to distinguish the user agent of each of the participants in the chat room? If this is the case, we could try to display that in the list of chat room members on the right of the member name. WDYT?

Cheers,
Yana

···

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

This also sounds like a viable solution :). I'll wait and see if there are any other viable solutions or if anyone else wants to have their opinion weighed in before starting on anything.

···

________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

···

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> wrote:

This also sounds like a viable solution :). I'll wait and see if there are any other viable solutions or if anyone else wants to have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Just to clarify, yes I can identify the user agent of chat room members, what my e-mail meant by the " OperationSetUserAgent is implemented " is that I can detect the user agent of people on the irc protocol. What I meant by "and my UserAgentDisplayPlugin only makes sense with individual users" is that an image on the toolbar displaying the user agent of the person you are talking to doesn't really make sense for multiple people because of the clutter; therefore, I'd have to do what Yana suggested if I wanted to show everyone's user agent. I hope I cleared up what I clouded up :stuck_out_tongue:

Cheers,
Brett

···

________________________________________

From: Lubomir Marinov [lubomir.marinov@gmail.com]

Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> wrote:

This also sounds like a viable solution :). I'll wait and see if there are any other viable solutions or if anyone else wants to have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

It's been a day or two, and I guess everyone that want's to "weigh in" on the subject has. I think I like the tooltips implementation simply because it's less stuff on the screen. Which implementation should I implement?

···

________________________________________

From: Lubomir Marinov [lubomir.marinov@gmail.com]

Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> wrote:

This also sounds like a viable solution :). I'll wait and see if there are any other viable solutions or if anyone else wants to have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution would be very good.

Brett, you could start by adding a getUserAgent() method in the ChatContact (..impl.gui.main.chat) and implementations in its ancestors MetaContactChatContact and ConferenceChatContact. In order to show the user agent in the tooltip you'd need to have a look to the DefaultContactList.createToolTip() method (the if (element instanceof ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

···

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh in" on the subject has. I think I like the tooltips implementation simply because it's less stuff on the screen. Which implementation should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> > wrote:

This also sounds like a viable solution :). I'll wait and see if there are any other viable solutions or if anyone else wants to have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

implementations in its ancestors MetaContactChatContact and ConferenceChatContact.

Sorry, I meant subclasses: MetaContactChatContact and ConferenceChatContact.

···

On Aug 14, 2009, at 6:05 PM, Yana Stamcheva wrote:

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution would be very good.

Brett, you could start by adding a getUserAgent() method in the ChatContact (..impl.gui.main.chat) and implementations in its ancestors MetaContactChatContact and ConferenceChatContact. In order to show the user agent in the tooltip you'd need to have a look to the DefaultContactList.createToolTip() method (the if (element instanceof ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh in" on the subject has. I think I like the tooltips implementation simply because it's less stuff on the screen. Which implementation should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> >> wrote:

This also sounds like a viable solution :). I'll wait and see if there are any other viable solutions or if anyone else wants to have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element instanceof
ChatContact) part. Here is the original and my small change:

Original:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

          tip.setTitle(chatContact.getName());
        }

New:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

            String userAgent = chatContact.getUserAgent();
            if(userAgent == null)
            {
          tip.setTitle(chatContact.getName());
            }
            else
            {
          tip.setTitle(userAgent);
            }
        }

I used setTitle() because (as the ExtendedTooltip stated) the tooltip text isn't actually painted, only the title is. The main text is simply used to force the tooltip to change for the JList cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett

···

________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> > wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#11

Actually, I looked it a little longer and actually implemented getUserAgent() in ChatContact. It simply returns a stored String that describes the User Agent.

The userAgent string is retrieved when the MetaContactChatContact and ConferenceChatContact are created.
Both call the protected getUserAgentForContact(Contact c); method (implemented in ChatContact). This method saves the user agent String it gets.

This allows me to put almost all of the code in ChatContact. The only changes I made to it's subclasses were to add getUserAgentForContact(theContactWeHaveAccessTo); in their constructors.

If I didn't explain this very well, you'd like the code, etc I'll get it to you as quick as possible.

Cheers,
Brett

···

________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Saturday, August 15, 2009 4:54 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element instanceof
ChatContact) part. Here is the original and my small change:

Original:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

                tip.setTitle(chatContact.getName());
        }

New:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

            String userAgent = chatContact.getUserAgent();
            if(userAgent == null)
            {
                tip.setTitle(chatContact.getName());
            }
            else
            {
                tip.setTitle(userAgent);
            }
        }

I used setTitle() because (as the ExtendedTooltip stated) the tooltip text isn't actually painted, only the title is. The main text is simply used to force the tooltip to change for the JList cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett
________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> > wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#12

Hi Brett,

It looks fine on first glance, however I have two little worries about this implementation. First is that we show the user agent *instead* the contact name and not in addition to it. This in the case of IRC would not be a problem, because we don't know much about the contact and the contact name doesn't give us more information. However in the case of MSN, Yahoo, Jabber chat rooms we could match the chat room member to a MetaContact and would be able to display much more information in the tooltip and not only the user agent. As I see in the code, this is not implemented yet, but could you please have a look at the ExtendedToolTip class and see if we could find an easy way to add the user agent information in addition to other things.

The second issue I see is that this way we're not showing the user agent icon.

Cheers,
Yana

···

On Aug 15, 2009, at 11:54 PM, Geren, Brett wrote:

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element instanceof
ChatContact) part. Here is the original and my small change:

Original:
       else if (element instanceof ChatContact)
       {
           ChatContact chatContact = (ChatContact) element;

           ImageIcon avatarImage = chatContact.getAvatar();

           if (avatarImage != null)
               tip.setImage(avatarImage);

         tip.setTitle(chatContact.getName());
       }

New:
       else if (element instanceof ChatContact)
       {
           ChatContact chatContact = (ChatContact) element;

           ImageIcon avatarImage = chatContact.getAvatar();

           if (avatarImage != null)
               tip.setImage(avatarImage);

           String userAgent = chatContact.getUserAgent();
           if(userAgent == null)
           {
         tip.setTitle(chatContact.getName());
           }
           else
           {
         tip.setTitle(userAgent);
           }
       }

I used setTitle() because (as the ExtendedTooltip stated) the tooltip text isn't actually painted, only the title is. The main text is simply used to force the tooltip to change for the JList cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> >> wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#13

Currently ChatRoomMemberIrcImpl always returns null in it's getContact() method. My OperationSet is designed to take Contacts so this is obviously problematic. I could one of the following:

1.change the OperationSet by altering the current method to take something besides Contacts (problematic, would have to change all code for all OpSet impls)
2.change the OperationSet by adding another method that does the same thing as the current method but takes something because a Contact (problematic, would have to change all code for all OpSet impls)
3.Implement a Contact for IRC (I'm personally leaning towards this route). It doesn't appear to be too difficult on the surface although I'm probably missing something. :stuck_out_tongue:

Just thought I'd get everyone's opinion.

Cheers,
Brett

···

________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Saturday, August 15, 2009 5:18 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Actually, I looked it a little longer and actually implemented getUserAgent() in ChatContact. It simply returns a stored String that describes the User Agent.

The userAgent string is retrieved when the MetaContactChatContact and ConferenceChatContact are created.
Both call the protected getUserAgentForContact(Contact c); method (implemented in ChatContact). This method saves the user agent String it gets.

This allows me to put almost all of the code in ChatContact. The only changes I made to it's subclasses were to add getUserAgentForContact(theContactWeHaveAccessTo); in their constructors.

If I didn't explain this very well, you'd like the code, etc I'll get it to you as quick as possible.

Cheers,
Brett
________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Saturday, August 15, 2009 4:54 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element instanceof
ChatContact) part. Here is the original and my small change:

Original:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

                tip.setTitle(chatContact.getName());
        }

New:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

            String userAgent = chatContact.getUserAgent();
            if(userAgent == null)
            {
                tip.setTitle(chatContact.getName());
            }
            else
            {
                tip.setTitle(userAgent);
            }
        }

I used setTitle() because (as the ExtendedTooltip stated) the tooltip text isn't actually painted, only the title is. The main text is simply used to force the tooltip to change for the JList cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett
________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> > wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#14

Ah, ok I was under the understanding (for some odd reason :P) that we would only display the user agent if we had it; otherwise, we just display the normal text. I see now you want to add the additional information of the user agent to the tooltip and the user agent icon. For this I propose adding a special line on the tooltip that displays the user agent (if known). As far as the user agent icon, do you want to show that in addition to the avatar or instead of? It don't think it would be hard to add it in addition while making it apparent that it is the user agent icon.

Cheers,
Brett

···

________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Sunday, August 16, 2009 2:55 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

It looks fine on first glance, however I have two little worries about
this implementation. First is that we show the user agent *instead*
the contact name and not in addition to it. This in the case of IRC
would not be a problem, because we don't know much about the contact
and the contact name doesn't give us more information. However in the
case of MSN, Yahoo, Jabber chat rooms we could match the chat room
member to a MetaContact and would be able to display much more
information in the tooltip and not only the user agent. As I see in
the code, this is not implemented yet, but could you please have a
look at the ExtendedToolTip class and see if we could find an easy way
to add the user agent information in addition to other things.

The second issue I see is that this way we're not showing the user
agent icon.

Cheers,
Yana

On Aug 15, 2009, at 11:54 PM, Geren, Brett wrote:

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and
ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element
instanceof
ChatContact) part. Here is the original and my small change:

Original:
       else if (element instanceof ChatContact)
       {
           ChatContact chatContact = (ChatContact) element;

           ImageIcon avatarImage = chatContact.getAvatar();

           if (avatarImage != null)
               tip.setImage(avatarImage);

              tip.setTitle(chatContact.getName());
       }

New:
       else if (element instanceof ChatContact)
       {
           ChatContact chatContact = (ChatContact) element;

           ImageIcon avatarImage = chatContact.getAvatar();

           if (avatarImage != null)
               tip.setImage(avatarImage);

           String userAgent = chatContact.getUserAgent();
           if(userAgent == null)
           {
              tip.setTitle(chatContact.getName());
           }
           else
           {
              tip.setTitle(userAgent);
           }
       }

I used setTitle() because (as the ExtendedTooltip stated) the
tooltip text isn't actually painted, only the title is. The main
text is simply used to force the tooltip to change for the JList
cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the
user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> >> wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of
each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however,
currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just
display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#15

Ok, I added the user agent name and icon to the tooltip using the addLine() method in ExtendedTooltip, and I know have a small implementation question.

Both the user agent display plugin and the tooltip both get an "unformatted" String describing the user agent. They then both take this "unformatted" String and use the exact same method to get the name and icon of the user agent it describes. Is there some central location I can put this method instead of having duplicate methods?

Cheers,
Brett

···

________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Sunday, August 16, 2009 2:55 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

It looks fine on first glance, however I have two little worries about
this implementation. First is that we show the user agent *instead*
the contact name and not in addition to it. This in the case of IRC
would not be a problem, because we don't know much about the contact
and the contact name doesn't give us more information. However in the
case of MSN, Yahoo, Jabber chat rooms we could match the chat room
member to a MetaContact and would be able to display much more
information in the tooltip and not only the user agent. As I see in
the code, this is not implemented yet, but could you please have a
look at the ExtendedToolTip class and see if we could find an easy way
to add the user agent information in addition to other things.

The second issue I see is that this way we're not showing the user
agent icon.

Cheers,
Yana

On Aug 15, 2009, at 11:54 PM, Geren, Brett wrote:

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and
ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element
instanceof
ChatContact) part. Here is the original and my small change:

Original:
       else if (element instanceof ChatContact)
       {
           ChatContact chatContact = (ChatContact) element;

           ImageIcon avatarImage = chatContact.getAvatar();

           if (avatarImage != null)
               tip.setImage(avatarImage);

              tip.setTitle(chatContact.getName());
       }

New:
       else if (element instanceof ChatContact)
       {
           ChatContact chatContact = (ChatContact) element;

           ImageIcon avatarImage = chatContact.getAvatar();

           if (avatarImage != null)
               tip.setImage(avatarImage);

           String userAgent = chatContact.getUserAgent();
           if(userAgent == null)
           {
              tip.setTitle(chatContact.getName());
           }
           else
           {
              tip.setTitle(userAgent);
           }
       }

I used setTitle() because (as the ExtendedTooltip stated) the
tooltip text isn't actually painted, only the title is. The main
text is simply used to force the tooltip to change for the JList
cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the
user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> >> wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of
each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however,
currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just
display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#16

I made a quick and simple Irc Contact impl just so I could test my ChatRoom tooltip code. (obviously, I'll use whatever solution you guys think is best, I just did this to allow me to quickly test the tooltip code). Attached are screenshots of the user agent String's being displayed on the tooltips. Also notice that the UserAgentDisplayPlugin disappears when in a chat room since it is "inappropriate" there.

Cheers,
Brett

···

________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Saturday, August 15, 2009 5:53 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Currently ChatRoomMemberIrcImpl always returns null in it's getContact() method. My OperationSet is designed to take Contacts so this is obviously problematic. I could one of the following:

1.change the OperationSet by altering the current method to take something besides Contacts (problematic, would have to change all code for all OpSet impls)
2.change the OperationSet by adding another method that does the same thing as the current method but takes something because a Contact (problematic, would have to change all code for all OpSet impls)
3.Implement a Contact for IRC (I'm personally leaning towards this route). It doesn't appear to be too difficult on the surface although I'm probably missing something. :stuck_out_tongue:

Just thought I'd get everyone's opinion.

Cheers,
Brett

________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Saturday, August 15, 2009 5:18 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Actually, I looked it a little longer and actually implemented getUserAgent() in ChatContact. It simply returns a stored String that describes the User Agent.

The userAgent string is retrieved when the MetaContactChatContact and ConferenceChatContact are created.
Both call the protected getUserAgentForContact(Contact c); method (implemented in ChatContact). This method saves the user agent String it gets.

This allows me to put almost all of the code in ChatContact. The only changes I made to it's subclasses were to add getUserAgentForContact(theContactWeHaveAccessTo); in their constructors.

If I didn't explain this very well, you'd like the code, etc I'll get it to you as quick as possible.

Cheers,
Brett
________________________________________

From: Geren, Brett [GerenBA@hendrix.edu]

Sent: Saturday, August 15, 2009 4:54 PM
To: dev@sip-communicator.dev.java.net
Subject: RE: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Ok I put the following method in ChatContact:

public abstract String getUserAgent();

and implemented it in both MetaContactChatContact and ConferenceChatContact.

I then edited DefaultContactList.createToolTip() in the if (element instanceof
ChatContact) part. Here is the original and my small change:

Original:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

                tip.setTitle(chatContact.getName());
        }

New:
        else if (element instanceof ChatContact)
        {
            ChatContact chatContact = (ChatContact) element;

            ImageIcon avatarImage = chatContact.getAvatar();

            if (avatarImage != null)
                tip.setImage(avatarImage);

            String userAgent = chatContact.getUserAgent();
            if(userAgent == null)
            {
                tip.setTitle(chatContact.getName());
            }
            else
            {
                tip.setTitle(userAgent);
            }
        }

I used setTitle() because (as the ExtendedTooltip stated) the tooltip text isn't actually painted, only the title is. The main text is simply used to force the tooltip to change for the JList cells.

Hopefully I did this correctly :slight_smile:

Cheers!

-Brett
________________________________________

From: Yana Stamcheva [yana@sip-communicator.org]

Sent: Friday, August 14, 2009 11:05 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in MulitUserChat implementation Question

Hi Brett,

Agree with both you and Lubomir and think that a tooltip solution
would be very good.

Brett, you could start by adding a getUserAgent() method in the
ChatContact (..impl.gui.main.chat) and implementations in its
ancestors MetaContactChatContact and ConferenceChatContact. In order
to show the user agent in the tooltip you'd need to have a look to the
DefaultContactList.createToolTip() method (the if (element instanceof
ChatContact) part) and the ExtendedTooltip implementation.

Hope this helps.

Cheers,
Yana

On Aug 14, 2009, at 2:59 PM, Geren, Brett wrote:

It's been a day or two, and I guess everyone that want's to "weigh
in" on the subject has. I think I like the tooltips implementation
simply because it's less stuff on the screen. Which implementation
should I implement?
________________________________________
From: Lubomir Marinov [lubomir.marinov@gmail.com]
Sent: Tuesday, August 11, 2009 1:51 PM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi girls and boys,

Just to through in my opinion though it's not very informed.

Regardless of how we eventually choose to display the user agent for
chat rooms, I believe that if it's at all possible, we'd want to have
the user agent for each of the chat room members. I mean if we can
have this information, it's better to put in support for it and then
if we choose to not display it, we will not display it. But if it's
possible to acquire the user agent for each chat room member and we
don't put that support in our chat room member-related classes, then
we'll have a harder time adding it later on if we want to display it.
What I don't understand from Brett's mail, though, is whether it's at
all possible to detect the user agent of a chat room member.

As to the specifics of the display in chat rooms and their members, I
think Yana's suggestion is fine. I personally don't feel the user
agent info should be that visible and I'd rather have it in a tooltip
over the chat room member. Yet it may be interesting in the general
case and not only in the case of chat room members to use the user
agent image as the avatar for contacts which don't have their own
avatar, I don't know. Anyway, Yana's suggestion and my suggestion
don't differ all that much and they both require that we have the user
agent information for each chat room member.

Best regards,
Lubomir

On Tue, Aug 11, 2009 at 2:19 PM, Geren, Brett<GerenBA@hendrix.edu> > wrote:

This also sounds like a viable solution :). I'll wait and see if
there are any other viable solutions or if anyone else wants to
have their opinion weighed in before starting on anything.
________________________________________
From: Yana Stamcheva [yana@sip-communicator.org]
Sent: Tuesday, August 11, 2009 6:15 AM
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] RE: Display User Agent Plug-in
MulitUserChat implementation Question

Hi Brett,

When you say that the OperationSetUserAgent is implemented for IRC,
does this mean that we are able to distinguish the user agent of each
of the participants in the chat room? If this is the case, we could
try to display that in the list of chat room members on the right of
the member name. WDYT?

Cheers,
Yana

On Aug 11, 2009, at 11:58 AM, Geren, Brett wrote:

I found an image that would give you an idea of the image I have in
mind:

http://cybernetnews.com/wp-content/uploads/2008/07/pidgin-adium-firefox-adobe-logos-icons.jpg
________________________________________
From: Geren, Brett [GerenBA@hendrix.edu]
Sent: Tuesday, August 11, 2009 4:47 AM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] Display User Agent Plug-in MulitUserChat
implementation Question

Oh, one thing I've been meaning to ask:

The OperationSetUserAgent is implemented for IRC; however, currently
all IRC chat is implemented in a ChatRoom, and my
UserAgentDisplayPlugin only makes sense with individual users.
How exactly should I handle this? One idea I had was to just display
an icon indicating there are multiple people/chat clients being
used. Cheers!

-Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-
communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net