You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.7 KiB
62 lines
1.7 KiB
15 years ago
|
|
||
|
#ifndef _K_SSL_SOCKET_H_
|
||
|
#define _K_SSL_SOCKET_H_
|
||
|
|
||
|
/*
|
||
|
ksslsocket.h - KDE SSL Socket
|
||
|
|
||
|
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. *
|
||
|
* *
|
||
|
*************************************************************************
|
||
|
*/
|
||
|
|
||
15 years ago
|
#include <tqvariant.h>
|
||
15 years ago
|
#include <kextsock.h>
|
||
|
#include <kio/slavebase.h>
|
||
|
|
||
|
class KSSLSocketPrivate;
|
||
|
|
||
|
class KSSLSocket : public KExtendedSocket
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
|
KSSLSocket();
|
||
|
~KSSLSocket();
|
||
|
|
||
14 years ago
|
TQ_LONG readBlock( char* data, TQ_ULONG maxLen );
|
||
|
TQ_LONG writeBlock( const char* data, TQ_ULONG len );
|
||
15 years ago
|
|
||
|
signals:
|
||
|
void sslFailure();
|
||
|
|
||
|
private slots:
|
||
|
void slotConnected();
|
||
|
void slotDisconnected();
|
||
|
|
||
|
private:
|
||
|
int verifyCertificate();
|
||
12 years ago
|
int messageBox( TDEIO::SlaveBase::MessageBoxType type, const TQString &text,
|
||
15 years ago
|
const TQString &caption, const TQString &buttonYes, const TQString &buttonNo );
|
||
15 years ago
|
|
||
|
|
||
|
//Copied frm tcpslavebase to simply integrating their dialog function
|
||
15 years ago
|
void setMetaData( const TQString &, const TQVariant & );
|
||
|
bool hasMetaData( const TQString & );
|
||
|
TQString metaData( const TQString & );
|
||
15 years ago
|
|
||
|
KSSLSocketPrivate *d;
|
||
|
};
|
||
|
|
||
|
#endif
|