Port things from MSN to WLM plugin:
[kdenetwork.git] / kopete / protocols / groupwise / libgroupwise / tlshandler.h
blob492a7d442c3dc879c32bb526a2ef9a398b707400
1 /*
2 tlshandler.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 GWTLSHANDLER_H
21 #define GWTLSHANDLER_H
23 #include <qobject.h>
24 //#include<qstring.h>
25 //#include<qhostaddress.h>
26 //#include<qstring.h>
27 //#include<qcstring.h>
28 //#include<qxml.h>
29 //#include<qdom.h>
31 class TLSHandler : public QObject
33 Q_OBJECT
34 public:
35 TLSHandler(QObject *parent=0);
36 virtual ~TLSHandler();
38 virtual void reset()=0;
39 virtual void startClient(const QString &host)=0;
40 virtual void write(const QByteArray &a)=0;
41 virtual void writeIncoming(const QByteArray &a)=0;
43 signals:
44 void success();
45 void fail();
46 void closed();
47 void readyRead(const QByteArray &a);
48 void readyReadOutgoing(const QByteArray &a, int plainBytes);
51 #endif