aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppServer.h
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/QXmppServer.h
parentfd7e6fdf36dba114375b7097fb0eb4caf0490e41 (diff)
downloadqxmpp-215be02a36812acf112fe82ea03ca5a09392ad90.tar.gz
improve API
Diffstat (limited to 'src/QXmppServer.h')
-rw-r--r--src/QXmppServer.h6
1 files changed, 3 insertions, 3 deletions
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);