summaryrefslogtreecommitdiffstats
path: root/konversation/src/sslsocket.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 18:29:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 18:29:46 +0000
commitee0d2e6e1967294f4a62da1840b0ffdaa3124a2d (patch)
tree5c150db3c91a190b4911f19aeec9b1b2163c0c53 /konversation/src/sslsocket.h
downloadkonversation-ee0d2e6e1967294f4a62da1840b0ffdaa3124a2d.tar.gz
konversation-ee0d2e6e1967294f4a62da1840b0ffdaa3124a2d.zip
Added old abandoned KDE3 version of Konversation
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/konversation@1092922 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konversation/src/sslsocket.h')
-rw-r--r--konversation/src/sslsocket.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/konversation/src/sslsocket.h b/konversation/src/sslsocket.h
new file mode 100644
index 0000000..aa15de0
--- /dev/null
+++ b/konversation/src/sslsocket.h
@@ -0,0 +1,60 @@
+#ifndef SSL_SOCKET_H
+#define SSL_SOCKET_H
+/*
+ KDE SSL Socket
+
+ Copyright (c) 2004,2005 by İsmail Dönmez <ismail.donmez@boun.edu.tr>
+
+ based on the code by:
+ Copyright (c) 2004 by Jason Keirstead <jason@keirstead.org>
+ Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
+
+ *************************************************************************
+ * *
+* This program is free software; you can redistribute it and/or modify *
+* it under the terms of the GNU General Public License as published by *
+* the Free Software Foundation; either version 2 of the License, or *
+* (at your option) any later version. *
+* *
+*************************************************************************
+*/
+
+#include <kstreamsocket.h>
+using namespace KNetwork;
+
+struct SSLSocketPrivate;
+
+class SSLSocket : public KStreamSocket
+{
+ Q_OBJECT
+
+ public:
+ explicit SSLSocket(QWidget* serverParent, QObject* parent = 0L, const char* name = 0L);
+ ~SSLSocket();
+
+ void showInfoDialog();
+ const QString details();
+
+ Q_LONG writeBlock (const char *data, Q_ULONG len);
+ Q_LONG readBlock (char *data, Q_ULONG maxlen);
+
+ protected:
+ void stateChanging (KClientSocketBase::SocketState newState);
+
+ signals:
+ /** Emitted when there is a problem with SSL
+ * @param reason An error string that has already been through i18n
+ */
+ void sslFailure(const QString& reason);
+ void sslInitDone();
+
+ private:
+ void connected();
+ int verifyCertificate();
+ void showSSLInfoDialog();
+
+ QWidget* m_serverParent;
+
+ SSLSocketPrivate* d;
+};
+#endif