libfolks_telepathy_la_VALAFLAGS = \
$(AM_VALAFLAGS) \
$(ERROR_VALAFLAGS) \
+ $(ZEITGEIST_VALAFLAGS) \
--vapidir=. \
--vapidir=$(top_srcdir)/folks \
--pkg folks \
--pkg gio-2.0 \
--pkg gee-1.0 \
--pkg telepathy-glib \
- --pkg zeitgeist-1.0 \
+ $(ZEITGEIST_PKG) \
--includedir folks \
--vapi folks-telepathy.vapi \
-H folks/folks-telepathy.h \
using Gee;
using TelepathyGLib;
using Folks;
+#if HAVE_ZEITGEIST
using Zeitgeist;
+#endif
+
extern const string G_LOG_DOMAIN;
extern const string BACKEND_NAME;
private Account _account;
+#if HAVE_ZEITGEIST
private Zeitgeist.Log? _log= null;
private Zeitgeist.Monitor? _monitor = null;
+#endif
/**
* The Telepathy account this store is based upon.
new GLib.GenericArray<TelepathyGLib.Contact> ());
this._got_initial_members = true;
+#if HAVE_ZEITGEIST
this._populate_counters.begin ();
+#endif
this._notify_if_is_quiescent ();
}
return store;
}
+#if HAVE_ZEITGEIST
private string? _get_iid_from_event_metadata (string? uri)
{
/* Format a proper id represting a persona in the store.
this._notify_if_is_quiescent ();
}
+#endif
}
using GLib;
using TelepathyGLib;
using Folks;
+#if HAVE_ZEITGEIST
using Zeitgeist;
+#endif
/**
* A persona subclass which represents a single instant messaging contact from
return store._ensure_persona_for_contact (contact);
}
+#if HAVE_ZEITGEIST
internal void _increase_counter (string id, string interaction_type, Event event)
{
var timestamp = (uint) (event.get_timestamp () / 1000);
this._last_call_interaction_datetime = null;
this._last_im_interaction_datetime = null;
}
+#endif
}
TP_GLIB_REQUIRED=0.19.0
AS_IF([test x$enable_telepathy_backend = xyes], [
PKG_CHECK_MODULES([TP_GLIB], [telepathy-glib >= $TP_GLIB_REQUIRED])
- PKG_CHECK_MODULES([ZEITGEIST], [zeitgeist-1.0 >= $ZEITGEIST_REQUIRED])
+ PKG_CHECK_MODULES([ZEITGEIST], [zeitgeist-1.0 >= $ZEITGEIST_REQUIRED],
+ have_zeitgeist="yes",have_zeitgeist="no")])
+AS_IF([test "x$have_zeitgeist" == "xyes"], [
+ ZEITGEIST_VALAFLAGS="-DHAVE_ZEITGEIST"
+ AC_SUBST([ZEITGEIST_VALAFLAGS])
+ ZEITGEIST_PKG="-pkg zeitgeist"
+ AC_SUBST([ZEITGEIST_PKG])
])
# Ignore post 0.20 deprecations
gee-1.0])
AS_IF([test x$enable_telepathy_backend = xyes], [
- VALA_CHECK_PACKAGES([telepathy-glib zeitgeist-1.0])
+ VALA_CHECK_PACKAGES([telepathy-glib])
+ AS_IF([test "x$have_zeitgeist" == "xyes"], [
+ VALA_CHECK_PACKAGES([zeitgeist-1.0])
+ ])
])
AS_IF([test x$enable_tracker_backend = xyes], [
Libsocialweb backend........: ${have_libsocialweb_backend}
E-D-S backend...............: ${enable_eds_backend}
Ofono backend...............: ${enable_ofono_backend}
+ Zeitgeist support...........: ${have_zeitgeist}
Build tests.................: ${enable_tests}
"