[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    groupwise_in_anger: kdenetwork/kopete/protocols/groupwise
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2004-09-09 20:11:57
Message-ID: 20040909201157.4CEFC2A06 () office ! kde ! org
[Download RAW message or body]

CVS commit by wstephens: 

Add drag and drop from contactlist to invite support


  M +8 -0      gwmessagemanager.cpp   1.1.2.24
  M +4 -0      gwmessagemanager.h   1.1.2.18


--- kdenetwork/kopete/protocols/groupwise/gwmessagemanager.cpp  #1.1.2.23:1.1.2.24
@@ -84,4 +84,5 @@ GroupWiseMessageManager::GroupWiseMessag
         
         setXMLFile("gwchatui.rc");
+        setMayInvite( true );
 
         m_invitees.setAutoDelete( true );
@@ -349,4 +350,11 @@ void GroupWiseMessageManager::slotInvite
 }
 
+void GroupWiseMessageManager::inviteContact( const QString &contactId )
+{
+        KopeteContact * contact = account()->contacts()[ contactId ];
+        if ( contact )
+                slotInviteContact( contact );
+}
+
 void GroupWiseMessageManager::slotInviteOtherContact()
 {

--- kdenetwork/kopete/protocols/groupwise/gwmessagemanager.h  #1.1.2.17:1.1.2.18
@@ -96,4 +96,8 @@ public:
          */
         void updateArchiving();
+        /**
+         * Reimplemented from KopeteMessageManager - invites contacts via DND
+         */
+        virtual void inviteContact(const QString& );
 signals:
         /**


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic