[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [kopete-devel] Group chat in kopete
From: Pali Rohár <pali.rohar () gmail ! com>
Date: 2009-03-04 6:52:58
Message-ID: 49AE254A.2030508 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Hello,
For simple implementation invite button in skype protocol I need signal
triggered(QString id) in KopeteContactAction (id is string name of
contact). I create patch which add this signal. Can I commit it to svn?
Tiago Salem Herrmann wrote / napísal(a):
> Pali Rohár wrote:
>
>> Ok, thanks it works.
>> But what about button in chat window "Invite people" ?
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> kopete-devel mailing list
>> kopete-devel@kde.org
>> https://mail.kde.org/mailman/listinfo/kopete-devel
>>
>>
> It is possible to add the invite button to the chat window in the
> protocol. Take a look at msn/wlm protocol.
> The lines 106 to 111 in wlmchatsession.cpp do the trick.
> _______________________________________________
> kopete-devel mailing list
> kopete-devel@kde.org
> https://mail.kde.org/mailman/listinfo/kopete-devel
>
["invite-button.patch" (text/x-patch)]
Index: kdenetwork/kopete/libkopete/ui/kopetecontactaction.cpp
===================================================================
--- kdenetwork/kopete/libkopete/ui/kopetecontactaction.cpp (revision 933527)
+++ kdenetwork/kopete/libkopete/ui/kopetecontactaction.cpp (working copy)
@@ -42,7 +42,9 @@
void ContactAction::slotTriggered( bool checked )
{
Kopete::Contact* contact = data().value<Kopete::Contact*>();
+ const QString &id = contact->contactId();
emit triggered( contact, checked );
+ emit triggered( id, checked );
}
}
Index: kdenetwork/kopete/libkopete/ui/kopetecontactaction.h
===================================================================
--- kdenetwork/kopete/libkopete/ui/kopetecontactaction.h (revision 933527)
+++ kdenetwork/kopete/libkopete/ui/kopetecontactaction.h (working copy)
@@ -55,6 +55,7 @@
* you need to know which contact the action was triggered for
*/
void triggered( Kopete::Contact*, bool checked );
+ void triggered( const QString &, bool checked );
private slots:
/**
["signature.asc" (application/pgp-signature)]
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic