List Info

Thread: KDE/kdenetwork/kopete/plugins/cryptography




KDE/kdenetwork/kopete/plugins/cryptograp hy
user name
2007-08-16 20:09:48
SVN commit 701014 by cconnell:

Cleanup
GUI:Less intrusive behavior of unsupported protocol warning


 M  +1 -2      CMakeLists.txt  
 M  +2 -2      cryptographyguiclient.cpp  
 M  +1 -0      cryptographyguiclient.h  
 M  +3 -3      cryptographyplugin.cpp  
 M  +3 -5      cryptographyplugin.h  
 M  +1 -1      cryptographyprefsbase.ui  
 D             cryptographyuserkey_ui.ui  


---
trunk/KDE/kdenetwork/kopete/plugins/cryptography/CMakeLists.
txt #701013:701014
 -14,8
+14,7 
    cryptographyselectuserkey.cpp 
    cryptographyconfig.cpp )
 
-kde4_add_ui_files(kopete_cryptography_PART_SRCS 
-		  cryptographyuserkey_ui.ui)
+kde4_add_ui_files(kopete_cryptography_PART_SRCS)
 
 kde4_add_plugin(kopete_cryptography
$)
 
---
trunk/KDE/kdenetwork/kopete/plugins/cryptography/cryptograph
yguiclient.cpp #701013:701014
 -2,6
+2,7 
     cryptographyguiclient.cpp
 
     Copyright (c) 2004      by Olivier Goffart       
<ogoffartkde.org>
+    Copyright (c) 2007      by Charles Connell       
<charlesconnells.org>
 
     Kopete    (c) 2003-2004 by the Kopete developers 
<kopete-develkde.org>
 
 -115,8
+116,7 
 		QString protocol (
csn->protocol()->metaObject()->className());
 		if ( m_encAction->isChecked() )
 			if ( ! CryptographyPlugin::supportedProtocols().contains
(protocol) )
-				if (KMessageBox::questionYesNo ( 0L, i18n ("This
protocol may not work with messages that are encrypted. Do
you still want to encrypt messages?"), i18n
("Cryptography Plugin"), KStandardGuiItem::yes(),
KStandardGuiItem::no(), "Dont warn about unsupported
protocols") == KMessageBox::No )
-					m_encAction->setChecked (false);
+				KMessageBox::information ( 0, i18n ( "This
protocol may not work with messages that are encrypted. This
is because encrypted messages are very long, and the server
or peer may reject them due to their length. To avoid being
signed off or your account being warned or temporarily
suspended, turn off encryption." ), i18n (
"Cryptography Unsupported Protocol" ), "Warn
about unsupported " + QString
(csn->protocol()->metaObject()->className()) );
 		
 	}
 	
---
trunk/KDE/kdenetwork/kopete/plugins/cryptography/cryptograph
yguiclient.h #701013:701014
 -2,6
+2,7 
     cryptographyguiclient.h
 
     Copyright (c) 2004      by Olivier Goffart       
<ogoffartkde.org>
+    Copyright (c) 2007      by Charles Connell       
<charlesconnells.org>
 
     Kopete    (c) 2003-2004 by the Kopete developers 
<kopete-develkde.org>
 
---
trunk/KDE/kdenetwork/kopete/plugins/cryptography/cryptograph
yplugin.cpp #701013:701014
 -1,7
+1,8 
 /*
     cryptographyplugin.cpp  -  description
 
-	Copyright (c) 2002-2004 by Olivier Goffart
<ogoffartkde.org>
+	Copyright (c) 2002-2004 by Olivier Goffart       
<ogoffartkde.org>
+	Copyright (c) 2007      by Charles Connell       
<charlesconnells.org>
 
     Kopete    (c) 2002-2007 by the Kopete developers
<kopete-develkde.org>
 
 -262,8
+263,7 
 	QString protocol (
KMM->protocol()->metaObject()->className() );
 	if ( mGui->m_encAction->isChecked() )
 		if ( ! supportedProtocols().contains ( protocol ) )
-			if ( KMessageBox::questionYesNo ( 0L, i18n ( "This
protocol may not work with messages that are encrypted. Do
you still want to encrypt messages?" ), i18n (
"Cryptography Plugin" ), KStandardGuiItem::yes(),
KStandardGuiItem::no(), "Dont warn about unsupported
protocols" ) == KMessageBox::No )
-				mGui->m_encAction->setChecked ( false );
+			KMessageBox::information ( 0, i18n ( "This protocol
may not work with messages that are encrypted. This is
because encrypted messages are very long, and the server or
peer may reject them due to their length. To avoid being
signed off or your account being warned or temporarily
suspended, turn off encryption." ), i18n (
"Cryptography Unsupported Protocol" ), "Warn
about unsupported " + QString
(KMM->protocol()->metaObject()->className()) );
 }
 
 #include "cryptographyplugin.moc"
---
trunk/KDE/kdenetwork/kopete/plugins/cryptography/cryptograph
yplugin.h #701013:701014
 -1,7
+1,8 
 /*
     cryptographyplugin.h  -  description
 
-    Copyright (c) 2002-2004 by Olivier Goffart
<ogoffartkde.org>
+    Copyright (c) 2002-2004 by Olivier Goffart       
<ogoffartkde.org>
+    Copyright (c) 2007      by Charles Connell       
<charlesconnells.org>
 
     Kopete    (c) 2002-2007 by the Kopete developers
<kopete-develkde.org>
 
 -18,9
+19,6 
 #ifndef CRYPTOGRAPHYPLUGIN_H
 #define CRYPTOGRAPHYPLUGIN_H
 
-
-#include <QQueue>
-
 #include "kopeteplugin.h"
 
 #include "cryptographyconfig.h"
 -51,7
+49,7 
 	static QString cachedPass();
 	static void setCachedPass(const QString &pass);
 	
-	static QStringList supportedProtocols() { QStringList l;
return l << "MSNProtocol" <<
"MessengerProtocol" <<
"JabberProtocol"; }
+	static QStringList supportedProtocols() { QStringList l;
return l << "MSNProtocol" <<
"MessengerProtocol" <<
"JabberProtocol" <<
"YahooProtocol"; }
 
 	CryptographyPlugin( QObject *parent, const QStringList
&args );
 	~CryptographyPlugin();
---
trunk/KDE/kdenetwork/kopete/plugins/cryptography/cryptograph
yprefsbase.ui #701013:701014
 -1,5
+1,5 
 <ui version="4.0" >
- <author>Olivier Goffart</author>
+ <author>Olivier Goffart, Charles
Connell</author>
  <class>CryptographyPrefsUI</class>
  <widget class="QWidget"
name="CryptographyPrefsUI" >
   <property name="geometry" >
_______________________________________________
kde-docbook mailing list
kde-docbookkde.org
htt
ps://mail.kde.org/mailman/listinfo/kde-docbook

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )