aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppOutgoingClient.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-02-08 12:33:41 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2012-02-08 12:33:41 +0000
commit21acd67e9b65bea87902032b12709675905aa922 (patch)
treeed5ae9066b10400c4fe6e67dfaf2f4c37a09c32e /src/QXmppOutgoingClient.h
parentcea7ae1e702b82d2d0d0a851de1aae58270b14f6 (diff)
downloadqxmpp-21acd67e9b65bea87902032b12709675905aa922.tar.gz
start moving client-specific code
Diffstat (limited to 'src/QXmppOutgoingClient.h')
-rw-r--r--src/QXmppOutgoingClient.h107
1 files changed, 0 insertions, 107 deletions
diff --git a/src/QXmppOutgoingClient.h b/src/QXmppOutgoingClient.h
deleted file mode 100644
index 4bb00d67..00000000
--- a/src/QXmppOutgoingClient.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Copyright (C) 2008-2011 The QXmpp developers
- *
- * Authors:
- * Manjeet Dahiya
- * Jeremy Lainé
- *
- * Source:
- * http://code.google.com/p/qxmpp
- *
- * This file is a part of QXmpp library.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- */
-
-
-#ifndef QXMPPOUTGOINGCLIENT_H
-#define QXMPPOUTGOINGCLIENT_H
-
-#include "QXmppClient.h"
-#include "QXmppStanza.h"
-#include "QXmppStream.h"
-
-class QDomElement;
-class QSslError;
-
-class QXmppConfiguration;
-class QXmppPresence;
-class QXmppIq;
-class QXmppMessage;
-
-class QXmppOutgoingClientPrivate;
-
-/// \brief The QXmppOutgoingClient class represents an outgoing XMPP stream
-/// to an XMPP server.
-///
-
-class QXmppOutgoingClient : public QXmppStream
-{
- Q_OBJECT
-
-public:
- QXmppOutgoingClient(QObject *parent);
- ~QXmppOutgoingClient();
-
- void connectToHost();
- bool isConnected() const;
-
- QSslSocket *socket() const { return QXmppStream::socket(); };
- QXmppStanza::Error::Condition xmppStreamError();
-
- QXmppConfiguration& configuration();
-
-signals:
- /// This signal is emitted when an error is encountered.
- void error(QXmppClient::Error);
-
- /// This signal is emitted when an element is received.
- void elementReceived(const QDomElement &element, bool &handled);
-
- /// This signal is emitted when a presence is received.
- void presenceReceived(const QXmppPresence&);
-
- /// This signal is emitted when a message is received.
- void messageReceived(const QXmppMessage&);
-
- /// This signal is emitted when an IQ is received.
- void iqReceived(const QXmppIq&);
-
-protected:
- /// \cond
- // Overridable methods
- virtual void handleStart();
- virtual void handleStanza(const QDomElement &element);
- virtual void handleStream(const QDomElement &element);
- /// \endcond
-
-private slots:
- void _q_dnsLookupFinished();
- void socketError(QAbstractSocket::SocketError);
- void socketSslErrors(const QList<QSslError>&);
-
- void pingStart();
- void pingStop();
- void pingSend();
- void pingTimeout();
-
-private:
- void sendAuthDigestMD5ResponseStep1(const QString& challenge);
- void sendAuthDigestMD5ResponseStep2(const QString& challenge);
- void sendAuthXFacebookResponse(const QString& challenge);
- void sendNonSASLAuth(bool plaintext);
- void sendNonSASLAuthQuery();
-
- QXmppOutgoingClientPrivate * const d;
-};
-
-#endif // QXMPPOUTGOINGCLIENT_H