summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-manager-internal.h
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-22 16:20:24 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-22 16:20:24 -0500
commitbf0ddf5880de6677cc7ad69f040651b256afd70e (patch)
tree9ebb9e3bdeb5fd614bc4eb01bf8c4f876df90c89 /telepathy-logger/log-manager-internal.h
parentce34b27629ad00ebc5bf0e7ad7ec1df43e190f48 (diff)
downloadtelepathy-logger-bf0ddf5880de6677cc7ad69f040651b256afd70e.tar.gz
Move away from id/type pair in favor of TplEntity
In the first rework step, TplEventSearchType was introduced with wrong assomption. This item was merging entity type and event type together. To make thing simple, this patch replace the pair with a TplEntity object that contain all the required information about the Entity. This enable for more complete logs in the future and fix bugs where get_entities() won't return chatrooms.
Diffstat (limited to 'telepathy-logger/log-manager-internal.h')
-rw-r--r--telepathy-logger/log-manager-internal.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/telepathy-logger/log-manager-internal.h b/telepathy-logger/log-manager-internal.h
index 86ac20a..d6a13d7 100644
--- a/telepathy-logger/log-manager-internal.h
+++ b/telepathy-logger/log-manager-internal.h
@@ -36,19 +36,16 @@ gboolean _tpl_log_manager_register_log_store (TplLogManager *self,
GList * _tpl_log_manager_get_dates (TplLogManager *manager,
TpAccount *account,
- const gchar *id,
- TplEventSearchType type);
+ TplEntity *target);
GList * _tpl_log_manager_get_events_for_date (TplLogManager *manager,
TpAccount *account,
- const gchar *id,
- TplEventSearchType type,
+ TplEntity *target,
const GDate *date);
GList * _tpl_log_manager_get_filtered_events (TplLogManager *manager,
TpAccount *account,
- const gchar *id,
- TplEventSearchType type,
+ TplEntity *target,
guint num_events,
TplLogEventFilter filter,
gpointer user_data);
@@ -67,8 +64,7 @@ void _tpl_log_manager_clear_entity (TplLogManager *self, TpAccount *account,
TplEntity *entity);
TplLogSearchHit * _tpl_log_manager_search_hit_new (TpAccount *account,
- const gchar *id,
- TplEventSearchType type,
+ TplEntity *target,
GDate *date);
void _tpl_log_manager_search_hit_free (TplLogSearchHit *hit);