Port things from MSN to WLM plugin:
[kdenetwork.git] / kopete / protocols / groupwise / libgroupwise / qcatlshandler.h
blob16827d50d8f26e341ed69188db5b4b6f6a74101c
1 /*
2 qcatlshandler.h - Kopete Groupwise Protocol
4 Copyright (c) 2004 SUSE Linux AG http://www.suse.com
6 Based on Iris, Copyright (C) 2003 Justin Karneges <justin@affinix.com>
8 Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
10 *************************************************************************
11 * *
12 * This library is free software; you can redistribute it and/or *
13 * modify it under the terms of the GNU Lesser General Public *
14 * License as published by the Free Software Foundation; either *
15 * version 2 of the License, or (at your option) any later version. *
16 * *
17 *************************************************************************
20 #ifndef GWQCATLSHANDLER_H
21 #define GWQCATLSHANDLER_H
23 //#include <qtimer.h>
24 #include "libgroupwise_export.h"
25 #include "tlshandler.h"
27 namespace QCA
29 class TLS;
32 class LIBGROUPWISE_EXPORT QCATLSHandler : public TLSHandler
34 Q_OBJECT
35 public:
36 QCATLSHandler(QCA::TLS *parent);
37 ~QCATLSHandler();
39 QCA::TLS *tls() const;
40 int tlsError() const;
42 void reset();
43 void startClient(const QString &host);
44 void write(const QByteArray &a);
45 void writeIncoming(const QByteArray &a);
47 signals:
48 void tlsHandshaken();
50 public slots:
51 void continueAfterHandshake();
53 private slots:
54 void tls_handshaken();
55 void tls_readyRead();
56 void tls_readyReadOutgoing();
57 void tls_closed();
58 void tls_error();
60 private:
61 class Private;
62 Private * const d;
65 #endif