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
>> [email protected]
>> 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
> [email protected]
> https://mail.kde.org/mailman/listinfo/kopete-devel
>   
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:
 	/**

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to