| Top |
WockyPepService * wocky_pep_service_new (const gchar *node,gboolean subscribe);
A convenience function to create a new WockyPepService object.
void wocky_pep_service_start (WockyPepService *self,WockySession *session);
Start listening to the PEP node node
and signal changes by using
“changed”.
void wocky_pep_service_get_async (WockyPepService *self,WockyBareContact *contact,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Starts an asynchronous operation to get the PEP node, “node”.
When the operation is complete, callback
will be called and the
function should call wocky_pep_service_get_finish().
self |
a WockyPepService object |
|
contact |
a WockyBareContact object |
|
cancellable |
an optional GCancellable object, or |
|
callback |
a function to call when the node is retrieved |
|
user_data |
user data for |
WockyStanza * wocky_pep_service_get_finish (WockyPepService *self,GAsyncResult *result,WockyNode **item,GError **error);
Finishes an asynchronous operation to get the PEP node,
“node”. For more details, see
wocky_pep_service_get_async().
self |
a WockyPepService object |
|
result |
||
item |
on success, the first <item> element
in the result, or |
[out][allow-none] |
error |
a location to store a GError if an error occurs |
WockyStanza * wocky_pep_service_make_publish_stanza (WockyPepService *self,WockyNode **item);
Generates a new IQ type='set' PEP publish stanza.
“node” property“node” gchar *
Namespace of the PEP node.
Flags: Read / Write / Construct Only
Default value: NULL
“changed” signalvoid user_function (WockyPepService *self, WockyBareContact *contact, WockyStanza *stanza, gpointer item, gpointer user_data)
Emitted when the node value changes.
self |
a WockyPepService object |
|
contact |
the WockyBareContact who changed the node |
|
stanza |
the WockyStanza |
|
item |
the first—and typically only—<item> element in |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details