mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
fix build for no XMPP
This commit is contained in:
parent
27b8d7076b
commit
b94b737f26
2 changed files with 6 additions and 2 deletions
|
@ -104,10 +104,12 @@ void GlobalServicesScriptingInterface::loggedOut() {
|
|||
emit GlobalServicesScriptingInterface::disconnected(QString("logout"));
|
||||
}
|
||||
|
||||
#ifdef HAVE_QXMPP
|
||||
void GlobalServicesScriptingInterface::messageReceived(const QXmppMessage& message) {
|
||||
if (message.type() != QXmppMessage::GroupChat) {
|
||||
return;
|
||||
}
|
||||
const QXmppMucRoom* publicChatRoom = XmppClient::getInstance().getPublicChatRoom();
|
||||
emit GlobalServicesScriptingInterface::incomingMessage(message.from().right(message.from().count() - 1 - publicChatRoom->jid().count()), message.body());
|
||||
}
|
||||
}
|
||||
#endif // HAVE_QXMPP
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <QXmppClient.h>
|
||||
#include <QXmppMessage.h>
|
||||
|
||||
#endif
|
||||
#endif // HAVE_QXMPP
|
||||
|
||||
class GlobalServicesScriptingInterface : public QObject {
|
||||
Q_OBJECT
|
||||
|
@ -47,7 +47,9 @@ private slots:
|
|||
void loggedOut();
|
||||
void onConnected();
|
||||
void participantsChanged();
|
||||
#ifdef HAVE_QXMPP
|
||||
void messageReceived(const QXmppMessage& message);
|
||||
#endif // HAVE_QXMPP
|
||||
|
||||
signals:
|
||||
void connected();
|
||||
|
|
Loading…
Reference in a new issue