/****************************************************************************
**
** qutIM - instant messenger
**
** Copyright © 2011 Ruslan Nigmatullin <euroelessar@yandex.ru>
**
*****************************************************************************
**
** $QUTIM_BEGIN_LICENSE$
** 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 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program.  If not, see http://www.gnu.org/licenses/.
** $QUTIM_END_LICENSE$
**
****************************************************************************/
#ifndef JCONNECTIONTCPSERVER_H
#define JCONNECTIONTCPSERVER_H

//#include <gloox/gloox.h>
//#include <gloox/connectionbase.h>
//#include <gloox/connectionhandler.h>
//#include <QTcpServer>

//namespace Jabber
//{
//class JConnectionTcpServer : public QObject, public gloox::ConnectionBase
//{
//	Q_OBJECT
//public:
//	JConnectionTcpServer(gloox::ConnectionHandler *handler);
//	virtual ~JConnectionTcpServer();
//	virtual gloox::ConnectionError recv(int timeout = -1);
//	virtual gloox::ConnectionError connect();
//	virtual gloox::ConnectionBase *newInstance() const;
//	virtual bool send(const std::string &);
//	virtual gloox::ConnectionError receive();
//	virtual void disconnect();
//	virtual void getStatistics(long int &, long int &);
//	virtual int localPort() const;
//	virtual const std::string localInterface() const;
//public slots:
//	void newConnection();
//private:
//	QTcpServer *m_tcp_server;
//	gloox::ConnectionHandler *m_connection_handler;
//};
//}

#endif // JCONNECTIONTCPSERVER_H

