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

List:       kde-commits
Subject:    kdenetwork/kopete/libkopete
From:       Matt Rogers <matt.rogers () kdemail ! net>
Date:       2004-07-09 19:42:24
Message-ID: 20040709194224.132E516B28 () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

Add a few more error codes to the DisconnectReason enum. Fatal errors that
we shouldn't reconnect on are negative numbers, so if you have more to add,
please don't hesitate to do so.

CCMAIL: kopete-devel@kde.org


  M +1 -1      kopeteaccount.cpp   1.102
  M +6 -1      kopeteaccount.h   1.57


--- kdenetwork/kopete/libkopete/kopeteaccount.cpp  #1.101:1.102
@@ -105,5 +105,5 @@ void KopeteAccount::disconnect( Disconne
 {
         //reconnect if needed
-        if ( KopetePrefs::prefs()->reconnectOnDisconnect() == true && reason != Manual )
+        if ( KopetePrefs::prefs()->reconnectOnDisconnect() == true && reason > Manual )
                 //use a timer to allow the plugins to clean up after return
                 QTimer::singleShot(0, this, SLOT(connect()));

--- kdenetwork/kopete/libkopete/kopeteaccount.h  #1.56:1.57
@@ -89,5 +89,10 @@ public:
          * The case where the password is wrong will be handled differently.
          */
-        enum DisconnectReason { Manual = 0, ConnectionReset = 1, Unknown = 99 };
+        enum DisconnectReason { 
+                BadUserName = -2,
+                InvalidHost = -1,
+                Manual = 0,
+                ConnectionReset = 1,
+                Unknown = 99 };
 
         /**


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

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