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

List:       licq-cvs
Subject:    [Licq-cvs] licq/src
From:       Jon Keating <emostar () users ! sourceforge ! net>
Date:       2005-11-12 1:36:12
Message-ID: E1EakJQ-0000Q1-8P () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/licq/licq/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1537/src

Modified Files:
	icqd-srv.cpp icqd.cpp 
Log Message:
Add support for the option of sending typing notifications or not.


Index: icqd-srv.cpp
===================================================================
RCS file: /cvsroot/licq/licq/src/icqd-srv.cpp,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- icqd-srv.cpp	20 Oct 2005 11:18:25 -0000	1.175
+++ icqd-srv.cpp	12 Nov 2005 01:36:10 -0000	1.176
@@ -1237,8 +1237,11 @@
 //-----icqTypingNotification---------------------------------------------------
 void CICQDaemon::icqTypingNotification(const char *_szId, bool _bActive)
 {
-  CSrvPacketTcp *p = new CPU_TypingNotification(_szId, _bActive);
-  SendEvent_Server(p);
+  if (m_bSendTN)
+  {
+    CSrvPacketTcp *p = new CPU_TypingNotification(_szId, _bActive);
+    SendEvent_Server(p);
+  }
 }
 
 //-----icqCheckInvisible--------------------------------------------------------
@@ -2022,10 +2025,14 @@
 void CICQDaemon::ProtoTypingNotification(const char *_szId,
   unsigned long _nPPID, bool _bActive, int nSocket)
 {
-  if (_nPPID == LICQ_PPID)
-    icqTypingNotification(_szId, _bActive);
-  else
-    PushProtoSignal(new CTypingNotificationSignal(_szId, _bActive, nSocket), _nPPID);
+  //TODO: Make for each plugin
+  if (m_bSendTN)
+  {
+    if (_nPPID == LICQ_PPID)
+      icqTypingNotification(_szId, _bActive);
+    else 
+      PushProtoSignal(new CTypingNotificationSignal(_szId, _bActive, nSocket), _nPPID);
+  }
 }
 // -----------------------------------------------------------------------------
 // -----------------------------------------------------------------------------

Index: icqd.cpp
===================================================================
RCS file: /cvsroot/licq/licq/src/icqd.cpp,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- icqd.cpp	9 Sep 2005 16:16:24 -0000	1.104
+++ icqd.cpp	12 Nov 2005 01:36:10 -0000	1.105
@@ -263,6 +263,7 @@
 
   // Misc
   licqConf.ReadBool("UseSS", m_bUseSS, true); // server side list
+  licqConf.ReadBool("SendTypingNotification", m_bSendTN, true);
   licqConf.ReadBool("ReconnectAfterUinClash", m_bReconnectAfterUinClash, false);
 
   // -----OnEvent configuration-----
@@ -794,6 +795,7 @@
 
   // Misc
   licqConf.WriteBool("UseSS", m_bUseSS); // server side list
+  licqConf.WriteBool("SendTypingNotification", m_bSendTN); 
   licqConf.WriteBool("ReconnectAfterUinClash", m_bReconnectAfterUinClash);
 
   // save the sound stuff



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Licq-cvs mailing list
Licq-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/licq-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

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