aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppClient.h
diff options
context:
space:
mode:
authorIan Geiser <ian.geiser@gmail.com>2009-11-08 22:02:28 +0000
committerIan Geiser <ian.geiser@gmail.com>2009-11-08 22:02:28 +0000
commit5b0870ddaac421af2639058648a218c7061cdd6f (patch)
tree351dd9d9ecb92fb1db4ded641a986066ad888914 /source/QXmppClient.h
parent89e052995997c9a372d7deee6a9d31e100e10533 (diff)
downloadqxmpp-5b0870ddaac421af2639058648a218c7061cdd6f.tar.gz
Added start of XEP-009. This is only the inteface, being able to invoke remote methods is next.
Diffstat (limited to 'source/QXmppClient.h')
-rw-r--r--source/QXmppClient.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/QXmppClient.h b/source/QXmppClient.h
index 56f8fd1a..06d2b7b6 100644
--- a/source/QXmppClient.h
+++ b/source/QXmppClient.h
@@ -41,6 +41,9 @@
#include <QObject>
#include <QTcpSocket>
+#include <QHash>
+#include <QVariant>
+
#include "QXmppConfiguration.h"
#include "QXmppPresence.h"
@@ -52,6 +55,9 @@ class QXmppIq;
class QXmppRoster;
class QXmppReconnectionManager;
class QXmppVCardManager;
+class QXmppInvokable;
+class QXmppRpcInvokeIq;
+class QXmppRemoteMethod;
class QXmppIbbTransferManager;
class QXmppClient : public QObject
@@ -150,6 +156,9 @@ signals:
public:
QAbstractSocket::SocketError getSocketError();
+ void addInvokableInterface( QXmppInvokable *interface );
+ void invokeInterfaceMethod( const QXmppRpcInvokeIq &iq );
+
// QXmppStanza::Error getXmppStreamError();
public slots:
@@ -168,6 +177,7 @@ private:
///< required for connecting to the XMPP server.
QXmppPresence m_clientPrecence; ///< Stores the current presence of connected client
QXmppReconnectionManager* m_reconnectionManager; ///< Pointer to the reconnection manager
+ QHash<QString,QXmppInvokable *> m_interfaces;
QXmppIbbTransferManager* m_ibbTransferManager; ///< Pointer to the ibb transfer manager
};