WockyJingleFactory

## WockyJingleFactory WockyJingleFactory |

## Synopsis

    struct              WockyJingleFactoryClass;
    WockyJingleFactory * wocky_jingle_factory_new           (WockySession *session);
    void                wocky_jingle_factory_stop           (WockyJingleFactory *self);
    void                wocky_jingle_factory_register_content_type
                                                            (WockyJingleFactory *self,
                                                             gchar *xmlns,
                                                             GType content_type);
    GType               wocky_jingle_factory_lookup_content_type
                                                            (WockyJingleFactory *self,
                                                             const gchar *xmlns);
    void                wocky_jingle_factory_register_transport
                                                            (WockyJingleFactory *self,
                                                             gchar *xmlns,
                                                             GType transport_type);
    GType               wocky_jingle_factory_lookup_transport
                                                            (WockyJingleFactory *self,
                                                             const gchar *xmlns);
    WockyJingleSession * wocky_jingle_factory_create_session
                                                            (WockyJingleFactory *fac,
                                                             const gchar *jid,
                                                             WockyJingleDialect dialect,
                                                             gboolean local_hold);
    WockyJingleInfo *   wocky_jingle_factory_get_jingle_info
                                                            (WockyJingleFactory *fac);

## Description

## Details

### struct WockyJingleFactoryClass

    struct WockyJingleFactoryClass {
        GObjectClass parent_class;
    };

### wocky_jingle_factory_new ()

    WockyJingleFactory * wocky_jingle_factory_new           (WockySession *session);

### wocky_jingle_factory_stop ()

    void                wocky_jingle_factory_stop           (WockyJingleFactory *self);

### wocky_jingle_factory_register_content_type ()

    void                wocky_jingle_factory_register_content_type
                                                            (WockyJingleFactory *self,
                                                             gchar *xmlns,
                                                             GType content_type);

### wocky_jingle_factory_lookup_content_type ()

    GType               wocky_jingle_factory_lookup_content_type
                                                            (WockyJingleFactory *self,
                                                             const gchar *xmlns);

### wocky_jingle_factory_register_transport ()

    void                wocky_jingle_factory_register_transport
                                                            (WockyJingleFactory *self,
                                                             gchar *xmlns,
                                                             GType transport_type);

### wocky_jingle_factory_lookup_transport ()

    GType               wocky_jingle_factory_lookup_transport
                                                            (WockyJingleFactory *self,
                                                             const gchar *xmlns);

### wocky_jingle_factory_create_session ()

    WockyJingleSession * wocky_jingle_factory_create_session
                                                            (WockyJingleFactory *fac,
                                                             const gchar *jid,
                                                             WockyJingleDialect dialect,
                                                             gboolean local_hold);

Creates a new WockyJingleSession to the specified contact. Note that the session will not be initiated until at least one content is added with `wocky_jingle_session_add_content()`, and those contents are ready.

You would typically determine which `dialect` to use from the peer's capabilities.

`fac` : | the factory
`jid` : | the full JID (typically including a resource) to establish a session with
`dialect` : | the variant of the Jingle protocol to use
`local_hold` : | whether the call should start out on hold; if in doubt, pass `FALSE`
Returns : | the new session, which will not be `NULL`. [transfer none]

### wocky_jingle_factory_get_jingle_info ()

    WockyJingleInfo *   wocky_jingle_factory_get_jingle_info
                                                            (WockyJingleFactory *fac);