diff options
author | hrxi <hrrrxi@gmail.com> | 2019-06-23 14:51:33 +0200 |
---|---|---|
committer | hrxi <hrrrxi@gmail.com> | 2019-07-09 11:21:40 +0200 |
commit | 82e7cf4447d72c24af04c64c05eed35338455f35 (patch) | |
tree | 3766c40dc3e030aa6a2c092545af17e5c998aa9c /xmpp-vala/src/module/stanza_error.vala | |
parent | 877c46628fa2836f9226e24a3d0a84b9a3f821e6 (diff) | |
download | dino-82e7cf4447d72c24af04c64c05eed35338455f35.tar.gz dino-82e7cf4447d72c24af04c64c05eed35338455f35.zip |
Add file receiving via Jingle
This currently follows the same rules as HTTP file download for
accepting files.
Diffstat (limited to 'xmpp-vala/src/module/stanza_error.vala')
-rw-r--r-- | xmpp-vala/src/module/stanza_error.vala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/stanza_error.vala b/xmpp-vala/src/module/stanza_error.vala index 651e8d2b..c108b02a 100644 --- a/xmpp-vala/src/module/stanza_error.vala +++ b/xmpp-vala/src/module/stanza_error.vala @@ -82,8 +82,8 @@ namespace Xmpp { public ErrorStanza.bad_request(string? human_readable = null) { this.build(TYPE_MODIFY, CONDITION_BAD_REQUEST, human_readable, null); } - public ErrorStanza.feature_not_implemented(StanzaNode? application_condition = null) { - this.build(TYPE_MODIFY, CONDITION_FEATURE_NOT_IMPLEMENTED, null, application_condition); + public ErrorStanza.feature_not_implemented(string? human_readable = null) { + this.build(TYPE_MODIFY, CONDITION_FEATURE_NOT_IMPLEMENTED, human_readable, null); } public ErrorStanza.item_not_found(StanzaNode? application_condition = null) { this.build(TYPE_CANCEL, CONDITION_ITEM_NOT_FOUND, null, application_condition); @@ -91,6 +91,9 @@ namespace Xmpp { public ErrorStanza.not_acceptable(string? human_readable = null) { this.build(TYPE_MODIFY, CONDITION_NOT_ACCEPTABLE, human_readable, null); } + public ErrorStanza.not_allowed(string? human_readable = null) { + this.build(TYPE_CANCEL, CONDITION_NOT_ALLOWED, human_readable, null); + } public ErrorStanza.service_unavailable() { this.build(TYPE_CANCEL, CONDITION_SERVICE_UNAVAILABLE, null, null); } |