aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-23 12:37:11 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-23 12:37:11 +0000
commit215be02a36812acf112fe82ea03ca5a09392ad90 (patch)
treef7cf093b6e9d4bc9cbc6c1de6c6f49d084ba2455 /src
parentfd7e6fdf36dba114375b7097fb0eb4caf0490e41 (diff)
downloadqxmpp-215be02a36812acf112fe82ea03ca5a09392ad90.tar.gz
improve API
Diffstat (limited to 'src')
-rw-r--r--src/QXmppServer.cpp4
-rw-r--r--src/QXmppServer.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/QXmppServer.cpp b/src/QXmppServer.cpp
index a8b5a3d2..ec0e3195 100644
--- a/src/QXmppServer.cpp
+++ b/src/QXmppServer.cpp
@@ -442,6 +442,10 @@ void QXmppServer::slotServerConnection(QSslSocket *socket)
Q_ASSERT(check);
}
+void QXmppServer::updateStatistics()
+{
+}
+
class QXmppSslServerPrivate
{
public:
diff --git a/src/QXmppServer.h b/src/QXmppServer.h
index e73b8f20..de0467c0 100644
--- a/src/QXmppServer.h
+++ b/src/QXmppServer.h
@@ -63,8 +63,8 @@ public:
void setLocalCertificate(const QString &sslCertificate);
void setPrivateKey(const QString &sslKey);
- bool listenForClients(const QHostAddress &address, quint16 port = 5222);
- bool listenForServers(const QHostAddress &address, quint16 port = 5269);
+ bool listenForClients(const QHostAddress &address = QHostAddress::Any, quint16 port = 5222);
+ bool listenForServers(const QHostAddress &address = QHostAddress::Any, quint16 port = 5269);
bool sendElement(const QDomElement &element);
bool sendPacket(const QXmppStanza &stanza);
@@ -81,7 +81,7 @@ protected:
QXmppOutgoingServer *connectToDomain(const QString &domain);
// overridable methods
virtual void handleStanza(QXmppStream *stream, const QDomElement &element) = 0;
- virtual void updateStatistics() = 0;
+ virtual void updateStatistics();
private:
QList<QXmppStream*> getStreams(const QString &to);