{
ConnectionWatcher *watcher;
LocationGPSDevice *gps_device;
+ /* List of (TpConnection *) supporting location publishing */
GSList *connections;
GHashTable *location;
/* If not 0, we are waiting before publishing again */
priv->blur = blur;
g_object_notify (G_OBJECT (self), "blur");
}
+
+gboolean
+position_publisher_has_connections (PositionPublisher *self)
+{
+ PositionPublisherPrivate *priv = POSITION_PUBLISHER_GET_PRIVATE (self);
+
+ return g_slist_length (priv->connections) > 0;
+}
void position_publisher_set_blur (PositionPublisher *self,
gboolean blur);
+gboolean position_publisher_has_connections (PositionPublisher *self);
+
G_END_DECLS
#endif /* #ifndef __POSITION_PUBLISHER_H__*/