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

List:       kopete-devel
Subject:    [Kopete-devel] Typing notification in Yahoo
From:       Balaji Ramani <balaji () spinnakernet ! com>
Date:       2003-03-27 18:15:38
[Download RAW message or body]

Hi,

Attached is a patch that enables typing notification for yahoo plug-in.  Could 
somebody who has CVS access please go through it and submit it?

- Balaji
["yahoo.patch" (text/x-diff)]

Index: yahooaccount.cpp
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/yahoo/yahooaccount.cpp,v
retrieving revision 1.7
diff -u -3 -p -u -r1.7 yahooaccount.cpp
--- yahooaccount.cpp	19 Mar 2003 14:25:43 -0000	1.7
+++ yahooaccount.cpp	27 Mar 2003 17:30:14 -0000
@@ -357,6 +357,7 @@ void YahooAccount::slotRejected( const Q
 
 void YahooAccount::slotTypingNotify( const QString &who, int what )
 {
+	emit receivedTypingMsg(who, what ? true : false);
 	kdDebug(14180) << "[YahooAccount::slotTypingNotify] " << who << " " << what << \
endl;  }
 
Index: yahooaccount.h
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/yahoo/yahooaccount.h,v
retrieving revision 1.5
diff -u -3 -p -u -r1.5 yahooaccount.h
--- yahooaccount.h	17 Mar 2003 12:35:33 -0000	1.5
+++ yahooaccount.h	27 Mar 2003 17:30:14 -0000
@@ -56,6 +56,9 @@ public slots:
 	virtual void connect();
 	virtual void disconnect();
 
+signals:
+	void receivedTypingMsg( const QString &contactId, bool isTyping );
+
 protected:
 	virtual bool addContactToMetaContact(const QString &contactId, const QString \
&displayName, KopeteMetaContact *parentContact);  
Index: yahoocontact.cpp
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/yahoo/yahoocontact.cpp,v
retrieving revision 1.38
diff -u -3 -p -u -r1.38 yahoocontact.cpp
--- yahoocontact.cpp	17 Mar 2003 22:11:53 -0000	1.38
+++ yahoocontact.cpp	27 Mar 2003 17:30:14 -0000
@@ -126,6 +126,9 @@ KopeteMessageManager *YahooContact::mana
 		m_manager = KopeteMessageManagerFactory::factory()->create(protocol()->myself(), \
m_them, protocol() );  connect( m_manager, SIGNAL( destroyed() ), this, SLOT( \
slotMessageManagerDestroyed() ) );  connect( m_manager, SIGNAL( \
messageSent(KopeteMessage &, KopeteMessageManager *) ), this, SLOT( \
slotSendMessage(KopeteMessage &) ) ); +		connect( m_manager, SIGNAL( \
typingMsg(bool)), this, SLOT( slotTyping(bool))); +		YahooAccount *i = \
static_cast<YahooAccount *>(account()); +		connect( i, SIGNAL( receivedTypingMsg( \
const QString &, bool )), m_manager, SLOT( receivedTypingMsg( const QString &, bool \
)));  }
 
 	return m_manager;


_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://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