aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppSaslAuth_p.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-19 17:59:18 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-19 17:59:18 +0200
commit48db05496f919870f381f5b6612e8a78a5c1ae62 (patch)
tree4c0b77164d67f22d7dd462a61a0cb620444c1b2c /src/base/QXmppSaslAuth_p.h
parent8626bb00697e224231227c35c2df301b3dc8f6b2 (diff)
downloadqxmpp-48db05496f919870f381f5b6612e8a78a5c1ae62.tar.gz
move some classes to private header
Diffstat (limited to 'src/base/QXmppSaslAuth_p.h')
-rw-r--r--src/base/QXmppSaslAuth_p.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/base/QXmppSaslAuth_p.h b/src/base/QXmppSaslAuth_p.h
new file mode 100644
index 00000000..eee93322
--- /dev/null
+++ b/src/base/QXmppSaslAuth_p.h
@@ -0,0 +1,84 @@
+/*
+ * Copyright (C) 2008-2012 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 QXMPPSASLAUTH_P_H
+#define QXMPPSASLAUTH_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the QXmpp API. It exists for the convenience
+// of the QXmppSaslClient class. This header file may change from
+// version to version without notice, or even be removed.
+//
+// We mean it.
+//
+
+class QXmppSaslClientAnonymous : public QXmppSaslClient
+{
+public:
+ QXmppSaslClientAnonymous();
+ QString mechanism() const;
+ bool respond(const QByteArray &challenge, QByteArray &response);
+
+private:
+ int m_step;
+};
+
+class QXmppSaslClientDigestMd5 : public QXmppSaslClient
+{
+public:
+ QXmppSaslClientDigestMd5();
+ QString mechanism() const;
+ bool respond(const QByteArray &challenge, QByteArray &response);
+
+private:
+ QXmppSaslDigestMd5 m_saslDigest;
+ int m_step;
+};
+
+class QXmppSaslClientFacebook : public QXmppSaslClient
+{
+public:
+ QXmppSaslClientFacebook();
+ QString mechanism() const;
+ bool respond(const QByteArray &challenge, QByteArray &response);
+
+private:
+ int m_step;
+};
+
+class QXmppSaslClientPlain : public QXmppSaslClient
+{
+public:
+ QXmppSaslClientPlain();
+ QString mechanism() const;
+ bool respond(const QByteArray &challenge, QByteArray &response);
+
+private:
+ int m_step;
+};
+
+#endif