|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
libpurple / find active conversations
by Cedric Roche
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message I need to know the best way to find all active conversation in order to not open a new one when sending a message. I found the function purple_find_conversation_with_account, where the name and the account arguments seems to be the the name and account of a PurpleBuddy structure (please, correct me if I'm wrong). So my guess is that I could do that by exploring the entire buddy list but my question is, is there a better way to do that ? Thx Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ? Lancez-vous ! _______________________________________________ Devel mailing list Devel@... http://pidgin.im/cgi-bin/mailman/listinfo/devel |
|
|
Re: libpurple / find active conversations
by Etan Reisner-2
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message On Wed, Jul 08, 2009 at 03:51:26PM +0200, Cedric Roche wrote:
> > Hi, > > I need to know the best way to find all active conversation in order to not open a new one when sending a message. I found the function purple_find_conversation_with_account, where the name and the account arguments seems to be the the name and account of a PurpleBuddy structure (please, correct me if I'm wrong). So my guess is that I could do that by exploring the entire buddy list but my question is, is there a better way to do that ? > > Thx What are you trying to do exactly? Why do you need to know if any random conversation already exists? What would looping over the buddy list help you determine? -Etan _______________________________________________ Devel mailing list Devel@... http://pidgin.im/cgi-bin/mailman/listinfo/devel |
|
|
RE: libpurple / find active conversations
by Cedric Roche
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message I want to loop over the buddy list in order to use purple_find_conversation_with_account. I'm sorry I have trouble to understand libpurple. Thx > Date: Wed, 8 Jul 2009 10:52:23 -0400 > From: pidgin@... > To: csced@... > CC: devel@... > Subject: Re: libpurple / find active conversations > > On Wed, Jul 08, 2009 at 03:51:26PM +0200, Cedric Roche wrote: > > > > Hi, > > > > I need to know the best way to find all active conversation in order to not open a new one when sending a message. I found the function purple_find_conversation_with_account, where the name and the account arguments seems to be the the name and account of a PurpleBuddy structure (please, correct me if I'm wrong). So my guess is that I could do that by exploring the entire buddy list but my question is, is there a better way to do that ? > > > > Thx > > What are you trying to do exactly? Why do you need to know if any random > conversation already exists? What would looping over the buddy list help > you determine? > > -Etan Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ? Lancez-vous ! _______________________________________________ Devel mailing list Devel@... http://pidgin.im/cgi-bin/mailman/listinfo/devel |
|
|
Re: libpurple / find active conversations
by Etan Reisner-2
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message On Wed, Jul 08, 2009 at 05:06:07PM +0200, Cedric Roche wrote:
> > I just want to send messages. If a PurpleConversation is already open between the two buddies, I want to use the existing one and not create a new one. > I want to loop over the buddy list in order to use purple_find_conversation_with_account. > > I'm sorry I have trouble to understand libpurple. > > Thx If you know the buddy you are sending to then you don't need to loop over the buddy list to find their name do you? So why can't you just use the buddy name in the find_conversation_with_account call directly? If you don't know the buddy name then how were you going to pick them from the buddy list to send to at all? But that's even more work than you technically need to do, as purple_conversation_new will re-use an existing IM conversation if one already exists. -Etan _______________________________________________ Devel mailing list Devel@... http://pidgin.im/cgi-bin/mailman/listinfo/devel |
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |