fix build to work if Qxmpp is not available

This commit is contained in:
ZappoMan 2014-07-28 15:17:33 -07:00
parent f438ae2ddb
commit fbfd63c429
2 changed files with 4 additions and 2 deletions

View file

@ -46,12 +46,12 @@ void XmppClient::xmppConnected() {
#endif
}
void XmppClient::xmppError(QXmppClient::Error error) {
#ifdef HAVE_QXMPP
void XmppClient::xmppError(QXmppClient::Error error) {
qDebug() << "Error connnecting to XMPP for user "
<< AccountManager::getInstance().getAccountInfo().getUsername() << ": " << error;
#endif
}
#endif
void XmppClient::connectToServer() {
#ifdef HAVE_QXMPP

View file

@ -35,7 +35,9 @@ signals:
private slots:
void xmppConnected();
#ifdef HAVE_QXMPP
void xmppError(QXmppClient::Error error);
#endif
void connectToServer();
void disconnectFromServer();