|  |  |  | Wocky Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <wocky/wocky-pep-service.h> struct WockyPepServiceClass; void wocky_pep_service_get_async (WockyPepService *self,WockyBareContact *contact,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); WockyStanza * wocky_pep_service_get_finish (WockyPepService *self,GAsyncResult *result,WockyNode **item,GError **error); WockyStanza * wocky_pep_service_make_publish_stanza (WockyPepService *self,WockyNode **item); WockyPepService * wocky_pep_service_new (const gchar *node,gboolean subscribe); void wocky_pep_service_start (WockyPepService *self,WockySession *session);
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().
| 
 | a WockyPepService object | 
| 
 | a WockyBareContact object | 
| 
 | an optional GCancellable object, or NULL | 
| 
 | a function to call when the node is retrieved | 
| 
 | user data for callback | 
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().
| 
 | a WockyPepService object | 
| 
 | a GAsyncResult | 
| 
 | on success, the first <item> element
in the result, or NULLifselfhas no published items. [out][allow-none] | 
| 
 | a location to store a GError if an error occurs | 
| Returns : | the WockyStanza retrieved from getting the PEP node. | 
WockyStanza * wocky_pep_service_make_publish_stanza (WockyPepService *self,WockyNode **item);
Generates a new IQ type='set' PEP publish stanza.
| 
 | a WockyPepService | 
| 
 | a location to store the item WockyNode, or NULL | 
| Returns : | a new WockyStanza PEP publish stanza; free with g_object_unref() | 
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".
| 
 | a WockyPepService object | 
| 
 | a WockySession object |