| 1 |
using Gee; |
| 2 |
using Xmpp.Xep; |
| 3 |
using Xmpp; |
| 4 |
|
| 5 |
namespace Xmpp.Xep.Jingle { |
| 6 |
|
| 7 |
public interface ContentType : Object { |
| 8 |
public abstract string ns_uri { get; } |
| 9 |
public abstract TransportType required_transport_type { get; } |
| 10 |
public abstract uint8 required_components { get; } |
| 11 |
public abstract ContentParameters parse_content_parameters(StanzaNode description) throws IqError; |
| 12 |
} |
| 13 |
|
| 14 |
public interface ContentParameters : Object { |
| 15 |
/** Called when the counterpart proposes the content */ |
| 16 |
public abstract async void handle_proposed_content(XmppStream stream, Jingle.Session session, Content content); |
| 17 |
|
| 18 |
/** Called when we accept the content that was proposed by the counterpart */ |
| 19 |
public abstract void accept(XmppStream stream, Jingle.Session session, Jingle.Content content); |
| 20 |
/** Called when the counterpart accepts the content that was proposed by us*/ |
| 21 |
public abstract void handle_accept(XmppStream stream, Jingle.Session session, Jingle.Content content, StanzaNode description_node); |
| 22 |
|
| 23 |
public abstract void terminate(bool we_terminated, string? reason_name, string? reason_text); |
| 24 |
|
| 25 |
public abstract StanzaNode get_description_node(); |
| 26 |
} |
| 27 |
} |