aboutsummaryrefslogtreecommitdiff
path: root/src/server/QXmppServerExtension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/QXmppServerExtension.cpp')
-rw-r--r--src/server/QXmppServerExtension.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/QXmppServerExtension.cpp b/src/server/QXmppServerExtension.cpp
index eb87963a..68916b56 100644
--- a/src/server/QXmppServerExtension.cpp
+++ b/src/server/QXmppServerExtension.cpp
@@ -74,6 +74,18 @@ QString QXmppServerExtension::extensionName() const
return QString::fromLatin1(name);
}
+/// Returns the extension's priority.
+///
+/// Higher priority extensions are called first when handling
+/// incoming stanzas.
+///
+/// The default implementation returns 0.
+
+int QXmppServerExtension::extensionPriority() const
+{
+ return 0;
+}
+
/// Handles an incoming XMPP stanza.
///
/// Return true if no further processing should occur, false otherwise.